Recent Cadalyst CAD Tip No. 3676, Shut It Down, is a menu macro intended to be executed when closing an AutoCAD drawing. This tip performs a very similar function, but is in LISP format instead. You may not want to perform all of the actions that Sam Lucido has outlined in this routine, but it is a good starting point for you to build your own shutdown routine. This routine sets layer 0 current, fully purges the drawing, performs a zoom extents, runs the Audit command, and finally saves the drawing. If you want to remove one of these commands or add your own, the code is very simple to understand. |