using GetMatchingArt
Hello,
I'm trying to do something with every selected element.
My testdocument contains two groups on one layer. Each group contains one symbol and one text element.
From the first group only the symbol is selected, the second group is fully selected.
With this piece of code I get to much elements in selCount. Selcount gives me a count of 6 items. How can I reduce this so I get only one Group and the symbol. Becouse this is only a sample the real question is how to get a list of only these elements which the user has selected without any parent groups, layers etc.
spec.whichAttr = kArtSelected;
spec.attr = kArtSelected;
spec.type = kAnyArt;
sAIMatchingArt->GetSelectedArt( &theArtStore, &selCount);