Recently I read an article on Macros and Custom Buttons on CAD notes website, got excited and thought I would try to implement it in
my daily final drawing cleanup routines. This simple routine saves me tons of time and leaves the drawing nice and clean for the next user.
I use it when I am done with the drawing and ready to move it through the next step of its life cycle.
© pressmaster – Fotolia.com
I have created a simple macro and assigned it to a button with a custom look that I use multiple times a day.
I called it Sweep Out. Here is the macro I use:
^C^C_Purge;\^C^C_Audit;\;^C^C_Overkill;All;;
Also, I am thinking about adding Zoom: Extents as my final step.
Editor’s note: The macro above uses pause. It allows you to have options when the commands are initiated.
Alternatively, if you don’t want to use pause and just want to purge all you can use code below.
^C^C_Purge;All;N;N;^C^C_Audit;Y;^C^C_Overkill;All;;
For more instructions on how customize AutoCAD, read this article about Customize User Interface (CUI).
I hope it will save you some time and will make your drawings be clean and look professional.
I always add regapps in the purge all command, since they are not purged otherways and can really slow a drawing down..
Lana how do you execute this sweepout command what key?
Rafael, I created a custom button, in CUI, choose any command you currently don’t use and place this macro instead of the one used, choose your picture (mine looks like a broom) and drag it to your command bar. You can look up the article in here: “creating custom buttons”, it is a great article. I hope that helps!