Daily PainkillerCreator resource hub
Workbench online
LSP · v0.2.0 · Experimental

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

  1. 01

    Download and load

    APPLOAD CLEANTOOLS.lsp; run CLEANTOOLS or CTOUTSIDE directly.

  2. 02

    Choose a function

    Press Down Arrow for Dynamic Input choices; select a function and scope.

  3. 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).

  4. 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

FunctionWhat it does
RemovePreview and confirm deletion of dimensions, recognised revision clouds, hatches, 2D solids, wipeouts or combined fills. Choose Select, Window, Current, Model or Layouts scope.
BLocksRemove chosen object types from selected shared/nested block definitions after confirming the definition-object count.
CleanupRun 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.
BUrstInvoke separately loaded Lee Mac LM:burst in Single or Nested mode. BurstUpgradedV1-8.lsp is a separate dependency, not bundled in this file.
Outside / CTOUTSIDEPreview 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.
HelpShow 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.
Test on a drawing copy first

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.

View updates and releases