Table of Contents

Method Erase

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Erase()

Erases the layer from its table, as AutoCAD's Erase of a layer no entity is on: its LAYER record taken out, the table's count lowered by one, its handle not given again and what it owned, as its extension dictionary, removed with it when the file is saved.

public override void Erase()

Exceptions

InvalidOperationException

Thrown when the layer is in no file or is erased already; when it is layer 0, Defpoints or the current layer, which AutoCAD keeps; when an entity is on it (IsUsed); or when an object of the file points at it, as a viewport that freezes it (by handle, or by name in a file before R2000).