eplisp

Audit and Purge All (PA)

eplisp, the free multilingual LISP library

Audit and Purge All (PA)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsPA
CategoryCleanup and Files
AuthorMichael Flynn
Sourcemf4633/C3D-AutoCAD
LicenseMIT
Version1.1
Updated2026-05-20
RequirementsAutoCAD, AutoCAD LT 2024 and later, and other CAD programs whose -PURGE command takes the same options. Uses command calls only.
Prompt languageEnglish
Filespurgeall.lsp (1 KB)
Added2026-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

  1. Load purgeall.lsp with APPLOAD.
  2. Type PA and press Enter.
  3. 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.

References

  1. Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
  2. Author: Michael Flynn – https://github.com/mf4633
  3. 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