Explode Block
block_explodeSplits a block reference into its component entities and converts each attribute to TEXT or MTEXT, preserving values, placement, height, rotation, and layer.
Instructions
Explode a block reference into its component entities, keeping its attribute text (the Express Tools BURST rule, on both engines).
Every attached ATTRIB becomes a TEXT with the same value, placement,
height, rotation and layer (an invisible attribute becomes an invisible
TEXT; a multi-line attribute becomes an MTEXT carrying every line), and
a constant attribute (which has no ATTRIB) becomes a TEXT of its value
too; AutoCAD's plain EXPLODE would keep only the tag-name placeholders
and drop the values. Everything lands in the layout that owns the
reference (model space or its paper-space sheet), whichever tab is
current. Returns inserted_handles (the geometry), attribute_texts
(one TEXT or MTEXT handle per attribute), exploded_handle and
backend. Refused, with nothing written: a handle that is not a block
reference, a reference nested inside a block definition (explode the
outer reference instead), an external reference (bind it first), a
MINSERT grid, and -- headless only, capability explode_opaque_members
-- a block holding a member ezdxf cannot transform (an OLE2FRAME logo, a
VIEWPORT, a proxy entity without proxy graphics), named by member; the
live engine hands those to AutoCAD. Not undoable except through
drawing_undo / a transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | Block reference (INSERT) entity handle |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||