eplisp

Explode All Anonymous Blocks (EXPLODEANON)

eplisp, the free multilingual LISP library

Explode All Anonymous Blocks (EXPLODEANON)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsEXPLODEANON
CategoryCleanup and Files
AuthorJared Tweddle
Sourcejtweddle89/CAD-Lisps
LicenseMIT
RequirementsAutoCAD (including LT 2024 and later). It relies on the undocumented QAFLAGS variable, so behavior in other CAD programs may differ.
Prompt languageEnglish
FilesExplodeAnon.LSP (2 KB)
Added2026-10-26
Download the original fileSource repository

Finds every anonymous block reference in the drawing (names starting with *U) and explodes them all at once, for cleanup or before exporting.

EXPLODEANON is a short cleanup command shared by Jared Tweddle. Instead of finding and exploding unnamed (*U) blocks one by one, often left behind by exports from other programs or by copy and paste, it breaks them all up in one go.

Overview

The command selects every INSERT whose name starts with *U and passes them to EXPLODE. To make EXPLODE accept the whole selection set at once, QAFLAGS is set to 5 temporarily and restored afterwards. It asks for no input.

How to use it

  1. Save the drawing or work on a copy.
  2. Load ExplodeAnon.LSP with APPLOAD.
  3. Type EXPLODEANON at the command line; the anonymous blocks are exploded immediately.

Notes and limitations

  • This is destructive: references to dynamic blocks whose properties were changed also carry *U names, so they are exploded too and lose their dynamic behavior. Undo with U.
  • The selection covers the whole drawing, but EXPLODE only processes objects in the current space (model or the active layout).
  • If an error interrupts the command, QAFLAGS may be left at 5; set it back to 0 by hand in that case.

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: jtweddle89/CAD-Lisps – https://github.com/jtweddle89/CAD-Lisps/tree/7f785940c5767486854504f6846907adef742549
  2. Author: Jared Tweddle – https://github.com/jtweddle89
  3. License: MIT – https://github.com/jtweddle89/CAD-Lisps/blob/7f785940c5767486854504f6846907adef742549/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal