AutoCAD Cleanup Lisp Routine

AutoCAD Cleanup Lisp Routine

averys8YKW6
Explorer Explorer
1,492 Views
5 Replies
Message 1 of 6

AutoCAD Cleanup Lisp Routine

averys8YKW6
Explorer
Explorer

I have to clean up 5 to 10 AutoCAD files daily. This becomes a very repetitive task. Is it possible to create a Lisp routine to do this work automatically? I am cleaning up drawings to import into another program so I need to remove all the blocks before, hence the three separate burst commands. 

Select All, Burst

Select All, Burst

Select All, Burst

Select All, Overkill  (Tolerance 0.000001)

Select All, Purge All

AECTOACAD

0 Likes
1,493 Views
5 Replies
Replies (5)
Message 2 of 6

jporter
Collaborator
Collaborator

Somebody already wrote a similar lisp routines here:  

If need be, take that and reverse engineer it to your needs.  

 

You can also use this awesome Drawing Purge tool that is free from the Autodesk App Store:  https://apps.autodesk.com/ACD/en/Detail/Index?id=3773138176974634673&appLang=en&os=Win32_64.  I've been using it for awhile and I love it.  It's a "one button does all" tool.  

 

 

 

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 3 of 6

averys8YKW6
Explorer
Explorer

That routine doesn't really look similar at all.

0 Likes
Message 4 of 6

jporter
Collaborator
Collaborator

You need to take what's there and extract only what you need and change the rest.  The command sequence is there though.  Now I'm no lisp genius, but this is what I've done with any lisp routine I've found in the past.  I've also combined lisp routines in the same manner:
LISP.jpg

Jason Porter
ASTI Civil Solutions Technical Advisor
www.asti.com
Message 5 of 6

pendean
Community Legend
Community Legend
Message 6 of 6

dmfrazier
Advisor
Advisor

BTW, it certainly isn't "necessary", or particularly advantageous, to use AutoLISP here. A simple script would do, or a menu macro (custom CUI "command").