Method ResetBlock
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ResetBlock()
Puts every dynamic property of the INSERT back to the dynamic block's own value, as AutoCAD's ResetBlock and
its RESETBLOCK command do: the INSERT places the dynamic block itself again, and its representation data (the entry
AcDbBlockRepresentation of its extension dictionary, with the values saved and the history of grip edits) is
removed, the dictionary kept, as AutoCAD 2021 left it (plugin GhDyn1). The INSERT keeps its place, rotation, scale and
ATTRIBs where they are, as AutoCAD kept the door's DOOR_NO at (2 800, -450) reset from a Width of 1 000 to its own
900; the anonymous block it placed is left in the drawing, as AutoCAD left *U2. An INSERT that places the
dynamic block itself already has its representation data removed where it keeps some, and is left as it is where it
keeps none; one that places no dynamic block is left as it is.
public void ResetBlock()
Exceptions
- InvalidOperationException
Thrown when the INSERT is in no drawing or is erased.