Table of Contents

Class DxfLayerTable

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

The layer table of a DXF file, as AutoCAD's LayerTable: its layers in the order of the file, each a DxfLayerTableRecord, found by name and added to.

public sealed class DxfLayerTable : DxfSymbolTable, IEnumerable<DxfLayerTableRecord>, IEnumerable
Inheritance
DxfLayerTable
Implements
Inherited Members
Extension Methods

Remarks

db.LayerTable.Add(new DxfLayerTableRecord { Name = "steel", ColorIndex = 1 }) adds the layer steel in red, with the linetype Continuous; db.LayerTable["STEEL"] finds it. A layer an entity is set on that the table does not list is added to it too, as Layer says.

Properties

this[string]

Gets the layer of a name, letters of either case the same.

Methods

GenerateUsageData()

Works out which layers are in use, as AutoCAD's GenerateUsageData does before IsUsed is read: the layers every entity is on, in one walk of the drawing, kept until the drawing next changes; IsUsed works them out itself where they are not kept.

GetEnumerator()

Gets an enumerator over the layers, in the order of the file, those added after them.