Copy link to clipboard
Copied
I have lot of small unwanted lines which to be deleted manually any script which can help to deleted small line and If I delete one line i can see below it one or two line on the same line any script which can delete it.
Please help me, just by cleaning the drawing views my eyes and hands are paining
thanks in advance...
regards
Laks
Copy link to clipboard
Copied
What OS are you using?
Copy link to clipboard
Copied
I am using Windows xp or Vista and next 2 or 3 months windows 7
using Illustrator CS5
Copy link to clipboard
Copied
this will take care of getting rid off the small paths
#target illustrator
// deletes pathItems smaller than the supplied length
var idoc = app.activeDocument;
var howLong = prompt ("Enter the length in points of small paths to be deleted", 10, "Delete Small Paths");
for (i=0 ; i< idoc.pathItems.length; i++)
{
var ipath = idoc.pathItems
if ( ipath.length < howLong)
{
ipath.selected = true;
}
}
app.redraw();
if(confirm ("Proceed to delete selected items?", "yes", "Confirm Delete"))
{
app.cut();
}
Copy link to clipboard
Copied
Thanks, Carlos. I was able to modify it slightly to use the area of the items and it works great. I had one in Applescript from a couple of years ago and this gave me the opportunity to share a JS version with my colleagues on Windows systems.
Copy link to clipboard
Copied
glad to help, Larry
Copy link to clipboard
Copied
I too tried and it's working amazing thanks for your help so kind of you carlos u r rocking.... great
Copy link to clipboard
Copied
you're welcome
Find more inspiration, events, and resources on the new Adobe Community
Explore Now