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:
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.
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.