Class DxfBlockTable
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
The block table of a DXF file, as AutoCAD's BlockTable: model space, paper space and every block, each a
DxfBlockTableRecord, in the order of the file, found by name and added to.
public sealed class DxfBlockTable : DxfSymbolTable, IEnumerable<DxfBlockTableRecord>, IEnumerable
- Inheritance
-
DxfBlockTable
- Implements
- Inherited Members
- Extension Methods
Remarks
db.BlockTable.Add(new DxfBlockTableRecord { Name = "BOLT", Origin = new GeoPoint3(1, 2, 0) }) adds the block BOLT
drawn about (1, 2, 0), empty until entities are appended to it. In a file of R13 or later the table is its BLOCK_RECORD
table, each record with its BLOCK; in one of R12 it is the blocks of the BLOCKS section, model space and paper space
among them where the file has them as blocks and first where it does not.
A block named *D, *U or *T is added as AutoCAD's BlockTable.Add adds one so named: an anonymous block
(IsAnonymous, flag 1 of its BLOCK's group 70), named by the table with the first
number from 1 up that no block of the drawing and no INSERT, dimension or table names. A drawing with no dimension
given var picture = new DxfBlockTableRecord { Name = "*D" } names it *D1, the next *D2; one whose
dimensions ezdxf drew as *D1 to *D11 names it *D12. Its lines and texts are appended to it as to
any block, and it is the DimBlock of a dimension made in code, so that the dimension is drawn
before AutoCAD draws it anew.
Properties
- this[string]
Gets the block of a name, letters of either case the same:
*Model_Spaceis ModelSpace.
Methods
- GetEnumerator()
Gets an enumerator over the blocks, in the order of the file, those added after them.