i import a illustrator file with this way
Set importedGroup = appRef.ActiveDocument.GroupItems.CreateFromFile(dest)
after i duplicate them
Set dupItem = importedGroup.Duplicate(newGroup, aiPlaceAfter)
but i don't know how to "ungroup" or "unmask" the importedGroup anyone have an idea?
ps: i have looking to use clipped but it seems to not working
sorry I'm really a beginner how can I do this ?
in fact I feel that takes the size of the document ( i import) as a mask group
but after search into the documentation i didn't find a method to ungroup/unmask
There is NO ungroup method with script… What you do is remove unwanted items from the group's page items collecton or move those items out of this container… delete group… Sorry I don't do VB but the method is the same
as Mark said, there's no "Ungroup" function...the way to "ungroup" manually is to take every item out of the group
you can make your own function
Function fungroup(whereToUngroup, group) '// where to ungroup? layer, document, other group? For i = group.PageItems.Count To 1 Step -1 group.PageItems(i).Move whereToUngroup, aiPlaceAtBeginning Next End Function
and call it like this
fungroup appRef.ActiveDocument, importedGroup