Hello,
I have a quastion regarding the removal of small objects in a drawing. I made with ArcGIS a map of the Netherlands. Because it is a detailed map, it also becomes heavy and my computer slows down. I merged some smll elements together with the pathfinder-unite command, but it is still to heavy. So I have to delete some other elements. The problem is that I want to get rid of all the small objects, but I dont know how to select them. Has Anybody an idea, to select objects by seize? It is a topograpic map with for example houses, lamp post et cetera, but I actuallly need only the build areas.
best, Roger
Here's one. Copy and paste into a text editor. Save as plain text with a jsx extension in the Adobe Illustrator CSX/Presets/en_US/Scripts folder and restart AI. Have a document open. It may take some time to run.
#target illustrator
// deletes pathItems smaller than the supplied length
var idoc = app.activeDocument;
var howLong = prompt ("Enter the size in points of small paths to be deleted", 2, "Delete Small Paths");
for (i=0 ; i< idoc.pathItems.length; i++)
{
var ipath = idoc.pathItems[i]
if ( ipath.width < howLong && ipath.height < howLong)
{
ipath.selected = true;
}
}
app.redraw();
if(confirm ("Proceed to delete selected items?", "yes", "Confirm Delete"))
{
app.cut();
}
North America
Europe, Middle East and Africa
Asia Pacific