Table of Contents

Property DimBlock

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DimBlock

Gets or sets the anonymous block that draws the dimension (group 2), as AutoCAD's DimBlockId gives its id: *D7, drawn by AutoCAD; null where the record names none, as a dimensional constraint does, or the drawing has no block of its name. A dimension in no drawing yet, copied from one, gives the block of that drawing.

public DxfBlockTableRecord DimBlock { get; set; }

Property Value

DxfBlockTableRecord

Set, a block of the drawing (of any drawing for a dimension made in code, whose drawing's block of the same name it then names), written as its name; the block is not drawn anew. An anonymous block set is marked as this dimension's own (flag 32 of group 70), as AutoCAD 2021 writes a DIMLINEAR's 70 as 32, so that a move takes the picture with it; give each dimension a block of its own.

Exceptions

ArgumentNullException

Thrown when the block set is null.

ArgumentException

Thrown when the block set is a layout, in no drawing, or of another drawing than the dimension's.

InvalidOperationException

Thrown when the dimension is erased.