Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

script to delete the line which is small in length and line on one another

New Here ,
Feb 25, 2011 Feb 25, 2011

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

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Feb 25, 2011 Feb 25, 2011

What OS are you using?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 28, 2011 Feb 28, 2011

I am using Windows xp or Vista and next 2 or 3 months windows 7

using Illustrator CS5

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2011 Feb 26, 2011

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();

     }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2011 Feb 28, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2011 Feb 28, 2011

glad to help, Larry

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2011 Mar 01, 2011

I too tried and it's working amazing thanks for your help so kind of you carlos u r rocking.... great

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2011 Mar 01, 2011
LATEST

you're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines