Method ExplodeToOwnerSpace
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ExplodeToOwnerSpace()
Explodes the INSERT into the block it is in, as AutoCAD's ExplodeToOwnerSpace: the entities
Explode() gives, an ATTDEF of the block among them, appended to the INSERT's owner, model space for
one of model space, in the order of the block, with handles of their own. The INSERT itself is kept, with its
ATTRIBs, as AutoCAD keeps it: insert.ExplodeToOwnerSpace(); insert.Erase(); explodes it as AutoCAD's EXPLODE
does, the attributes turned back into their definitions. A MINSERT gives its first cell alone, as AutoCAD 2021's
ExplodeToOwnerSpace did: its MINSERT of a circle of radius 3 in 3 columns by 2 rows made one circle, that at
the MINSERT's insertion point.
public void ExplodeToOwnerSpace()
Remarks
An entity the drawing cannot hold, as the ELLIPSE a circle comes out as under a scale unlike along its axes in a drawing of R12, is refused: those appended before it are erased again, the drawing as it was but for the handles given on the way.
Exceptions
- InvalidOperationException
Thrown when the INSERT is in no drawing, is erased, its drawing has no block of its name, or exploding would make more than the 2 000 000 entities of MaxPlacedEntities.
- ArgumentException
Thrown when the drawing cannot hold an entity exploding makes, or the block inserts itself.