Have you tried to just remove the first path item in the group? Other wise also see the clipping property of the first path item…
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
It work Thank you !