Skip navigation
Currently Being Moderated

how to "ungroup" or "unmask" the a imported Group (vbs)

Sep 3, 2012 6:20 AM

Tags: #mask #vbs #group #ungroup #unmask #importedgroup

In vbs

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?



Thank you


ps: i have looking to use clipped but it seems to not working

  • Currently Being Moderated
    Sep 3, 2012 9:11 AM   in reply to LeRhum42

    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…

    Mark as:
  • Currently Being Moderated
    Sep 4, 2012 4:07 AM   in reply to LeRhum42

    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

    Mark as:
  • Currently Being Moderated
    Sep 4, 2012 6:15 PM   in reply to LeRhum42

    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
    End Function



    and call it like this


    fungroup appRef.ActiveDocument, importedGroup 
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points