Table of Contents

Method Erase

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Erase()

Erases the object from its file, as AutoCAD's Erase does: an entity is taken out of its block with every record of it, as Erase() says; a layer, a linetype, a text style or a block nothing uses out of its table, as their own Erase says; an XRECORD (DxfXrecord), a GROUP (DxfGroup) and a GEODATA (DxfGeoData) with the entry of the dictionary that names it.

public virtual void Erase()

Exceptions

InvalidOperationException

Thrown when the object is in no file, or is erased.

NotSupportedException

Thrown for an object not erased yet: a table, a dictionary, a layout.