Ren Smith, a CNC programmer and CAD detailer, sends us a custom-made macro for AutoCAD and its verticals.
"This macro is a tool button command to zoom extents, audit, purge, and save a drawing. Open the CUI (command user interface) and create a new tool. Give it a name and description, and in the Macro field enter the following string:
^C^C_ze audit y _purge a * n _qsave
Macros are an easy way to combine commands to make your work easier!"
Notes from Cadalyst Tip Patrol: Save time and effort. Keep your files clean and neat. Remove errors. Save your work. All this in one click! Macros like this are a great way to execute several commands at once, and you can put virtually any command in a macro.
Some commands in AutoCAD are really just macros. For example, the Circle command has many options available to it. By default, you pick the center point, then the radius, but if you look at the Command line after you start the command, you'll see how many choices you have. There are several ways to draw a circle. If you pick, for example, the two-points method on the ribbon or on a toolbar, that command is actually a macro.