CLEANTOOLS
Previewed drawing cleanup, shared-block cleanup and delete-outside-boundary tools.
- Runs on
- AutoCAD · Windows
- Commands
- CLEANTOOLS / CTOUTSIDE
- Author
- Myo Myint Maung
How to use
- 01
Download and load
APPLOAD CLEANTOOLS.lsp; run CLEANTOOLS or CTOUTSIDE directly.
- 02
Choose a function
Press Down Arrow for Dynamic Input choices; select a function and scope.
- 03
Review and check
For Outside, pick a closed zero-width/zero-thickness 2D polyline, review candidate highlights/counts, then explicitly choose Yes (Enter means No).
- 04
Review and check
Inspect results and test U to restore deletions in a copy. Load the separate Lee Mac engine before using Burst.
Functions and explanation
| Function | What it does |
|---|---|
| Remove | Preview and confirm deletion of dimensions, recognised revision clouds, hatches, 2D solids, wipeouts or combined fills. Choose Select, Window, Current, Model or Layouts scope. |
| BLocks | Remove chosen object types from selected shared/nested block definitions after confirming the definition-object count. |
| Cleanup | Run drawing-wide PURGE (three passes) or AUDIT with repair after confirmation. Duplicates prepares an editable current-space selection for manually running OVERKILL; it does not run OVERKILL itself. |
| BUrst | Invoke separately loaded Lee Mac LM:burst in Single or Nested mode. BurstUpgradedV1-8.lsp is a separate dependency, not bundled in this file. |
| Outside / CTOUTSIDE | Preview and delete whole objects completely outside one closed simple 2D polyline in the current space. Retain the boundary and inside/crossing/touching objects; require Yes before deletion. |
| Help | Show feature notes, boundary limitations and a drawing-copy acceptance-test checklist. |
Limits and responsible use
- Destructive cleanup: keep a backup. Shared-block edits affect every instance, including instances on locked layers.
- Outside includes unlocked objects on off/frozen layers, skips locked/unwritable objects and ignores elevation. Current model space or current paper-space layout only.
- Complex objects (including blocks, text, hatches, splines and attached attributes) use enclosing extents; overlapping extents and near-boundary curved geometry are retained conservatively, so some fully outside objects can remain.
- Outside does not explode blocks or edit their definitions. Infinite lines, viewports, proxy/unreadable objects are skipped; unsupported, fitted/3D/mesh, self-crossing or excessively detailed boundaries are rejected.
- Revision-cloud recognition relies on RevcloudProps metadata; unrecognised cloud-shaped polylines remain.
- Dynamic Input/CMDECHO settings are restored by the runner. Cancellation can leave completed changes; drawing host testing remains required.
Static source review only. This uploaded version has not been executed inside AutoCAD here. Use Windows AutoCAD with Visual LISP/ActiveX; other hosts and platforms are not verified. Keep a backup and check results before project use.
The download preserves the original uploaded file bytes. Published 31 Oct 2026.