Skip to main content
Taylor810
Participant
July 20, 2010
Question

Release all compound paths at the same time?

  • July 20, 2010
  • 2 replies
  • 29470 views

Platform: PC/Windows XP SP2
Adobe: Illustrator CS3 (13.0.2)


Is it possible to release all compound paths in an illustration at the same time (and if so - how)?


I receive drawings from engineering in either PDF or CGM format, which I edit in Illustrator and save as AI. I have to release compound paths in order to delete specific parts of the drawing.

This isn't difficult, but it is very time-consuming because the CGM(or PDF)-to-Illustrator conversion results in quite a few compound paths.


Thanks - I appreciate your help,



Dan

    This topic has been closed for replies.

    2 replies

    Participant
    November 19, 2015

    Use this script

    var doc=activeDocument;

    var sel = doc.selection;

    var len = sel.length;

    while(len--)

    {

       if(sel[len].typename ==="CompoundPathItem"){

      sel[len].selected=false;

       }

    }

    alert("Only non-compound items are selected.");

    Source: Scripting Illustrator: Select Compound Paths only

    July 20, 2010

    Select all, go to Object>Compound Path>Release.

    Taylor810
    Taylor810Author
    Participant
    July 20, 2010

    Sorry -- I forgot to mention that I tried that; some of the compound paths were released but there were still quite a few that weren't...

    Inspiring
    July 20, 2010

    None of the above... I'll spend some time to see if I can figure out what the un-released paths have in common & repost if I figure it out. Thanks - I really appreciate you replying so quickly.


    Are they all compound paths or are some of them compound shapes?

    Try release/expand compound shape?