Table of Contents

Method Erase

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Erase()

Erases the entity from its block, as AutoCAD's Erase does: every record of it goes, a POLYLINE's vertices and end and an INSERT's attributes with it, its handle is not given again, and what pointed at it is seen to when the file is saved: a GROUP no longer lists it, a list of reactors no longer holds it, and the objects it owned, such as its extension dictionary, go with it; any other pointer at it, as a table cell's at an attribute definition (331) or an XRECORD's data, stays where it stands, named in the log once. A record that follows an entity, a VERTEX of a POLYLINE or an ATTRIB of an INSERT, is taken out of it alone, every other record keeping its handle.

public override void Erase()

Exceptions

InvalidOperationException

Thrown when the entity is in no file, or is erased already; for the SEQEND that ends a POLYLINE's or an INSERT's records, which the entity keeps.