Audit and Purge All (PA)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | PA |
|---|---|
| Category | Cleanup and Files |
| Author | Michael Flynn |
| Source | mf4633/C3D-AutoCAD |
| License | MIT |
| Version | 1.1 |
| Updated | 2026-05-20 |
| Requirements | AutoCAD, AutoCAD LT 2024 and later, and other CAD programs whose -PURGE command takes the same options. Uses command calls only. |
| Prompt language | English |
| Files | purgeall.lsp (1 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Runs AUDIT with automatic fixing, then purges all unused named objects three times and removes unused registered applications, with no prompts.
PA is a one-word cleanup command from Michael Flynn's C3D-AutoCAD library. It covers the routine housekeeping done before sending or archiving a drawing: fixing database errors and removing unused layers, styles, blocks and linetypes.
Overview
The command first runs AUDIT and answers Yes to fixing errors. It then runs -PURGE with the All option three times in a row, because purging one item can leave others unused (for example a layer used only inside an unused block). A final pass purges unused registered application (regapp) entries, which often bloat drawings received from other offices.
How to use it
- Load purgeall.lsp with APPLOAD.
- Type PA and press Enter.
- Wait until audit and purge finish, check the drawing and save it.
Notes and limitations
- The drawing is changed without confirmation: AUDIT repairs errors and PURGE deletes every unused named object, including layers, blocks and styles you may have kept on purpose. The changes can be undone with U before saving.
- Prompts are answered by option name, so a CAD program with different -PURGE prompts may need small edits to the code.
- The repository was published in 2026; test on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- purgeall.lsp (1 KB)
- License text
References
- Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
- Author: Michael Flynn – https://github.com/mf4633
- License: MIT – https://github.com/mf4633/C3D-AutoCAD/blob/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal