How to create adobe illustrator symbols from objects

Sometimes you have a lot of drawings that you want to use as symbols.

One way to create your symbols in illustrator for later re-use is to manually adding each object to your symbol library.

Or

Use this script to do it automatically

var currentDoc = activeDocument;
var groupItemsList = currentDoc.groupItems;
var vCounter =0;

// Add all object that are grouped together as a new symbol
// If one needs to add single paths ( ungroup items) then add another loop for currrentDoc.pathItems.

if (groupItemsList.length > 0) {
for (i = 0; i < groupItemsList.length; i++) {
vCounter = vCounter +1 ;

currentDoc.symbols.add(groupItemsList[i]);
}
alert ( vCounter + ” Symbols created”);
}
else {
alert(“Your document does not have any valid objects”);
}

Leave a Reply

Your email address will not be published. Required fields are marked *