How to retrieve the stroke align property of path.. which suite is used to find the stroke align property of path in illustrator sdk...
Copy link to clipboard
Not sure what you mean. You mean the alignment of a dashed stroke? Can you share a screenshot of the property in the panel you want to manipulate? I don't think there's anything stroke-wise that can't be manipulated via the SDK.
I want to retrieve the stroke alignment of path like.. stroke align centre, stroke align inside and stroke align outside ... These properties I need to retrieve...
Sorry, been busy!
I think you're looking for the AIBeautifulStrokesSuite, found in AIBeautifulStrokes.h. It's a more complicated way of dealing with stroke properties, but anything beyond the basics (butt cap, miter, colour, dash, etc.) is found there. The header has a long preamble explaining how to use it, and frankly I don't have the energy to try and do it myself. It's a lot more complicated than the other properties, but the good news is once you have code to access it, you can access a wealth of stroke & fill properties.
sAIArt->SetArtUserAttr(art, kArtSelected, kArtSelected);
the above code i used to select the each path
strokeAlignType = sAIPaintStyle->GetStrokeAlignmentFromSelection();
cout << "strokeAlignType = "<<strokeAlignType <<endl;
the above code i used to retrieve the stroke align type for the selected path.
but while retriving the property im getting same stroke align type value, which is applied for the first path.
after retrieving stroke align property for one art im deselecting previous object after retrieving the selected art object.
the below code i used to deselect the current art object from the document
sAIArt->SetArtUserAttr(art, kArtSelected, 0);
can you i get correct solution for this..