Class DxfSymbolTable
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A table of a DXF file, as AutoCAD's SymbolTable: the layers, the linetypes, the blocks, each record found by its
name, letters of either case the same, as AutoCAD finds one.
public abstract class DxfSymbolTable : DxfDBObject, IEnumerable
- Inheritance
-
DxfSymbolTable
- Implements
- Derived
- Inherited Members
Remarks
Each table is a class of its own, whose indexer and enumerator give its own records: DxfLayerTable,
DxfLinetypeTable, DxfTextStyleTable and DxfBlockTable. A record is added by Add(DxfSymbolTableRecord), as AutoCAD
adds one: db.LayerTable.Add(new DxfLayerTableRecord { Name = "steel", ColorIndex = 1 }).
Properties
- this[string]
Gets the record of a name, as AutoCAD's indexer, letters of either case the same: the first of the table where two differ only in case.
Methods
- Add(DxfSymbolTableRecord)
Adds a record made in code to the table, as AutoCAD's
Add: its record written before the table's ENDTAB in the file's own style, with a handle of its own, the table as its owner and the table's count raised by one. The same object is the record of the table from then on. The block table takes a block named*Uor*Das AutoCAD's takes one, an anonymous block it names itself,*D1the first (see DxfBlockTable).
- GetEnumerator()
Gets an enumerator over the records, in the order of the file, those added after them.
- Has(string)
Gets whether the table has a record of a name, as AutoCAD's
Has, letters of either case the same.