Table of Contents

Property BlockTableRecord

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

BlockTableRecord

Gets or sets the block whose geographic location the GEODATA gives (group 330 of AcDbGeoData), as AutoCAD's BlockTableRecordId: ModelSpace for the drawing's own; null where the drawing has no block of the handle, and for one made in code not given one.

public DxfBlockTableRecord BlockTableRecord { get; set; }

Property Value

DxfBlockTableRecord

Set, on a GEODATA made in code, the block it is posted to: model space, as AutoCAD 2021 refuses paper space (eInvalidInput) and every other block.

Exceptions

ArgumentNullException

Thrown when the block set is null.

ArgumentException

Thrown when the block set is of a drawing and is not its model space.

InvalidOperationException

Thrown when the block is set on a GEODATA of a file: it stays with the block whose extension dictionary holds it.