Table of Contents

Property Units

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Units

Gets or sets the unit the block is drawn in (group 70 of its BLOCK_RECORD), as AutoCAD's Units: an INSERT of a block in millimetres into a drawing in metres scales it by a thousandth; Undefined where it gives none.

public DxfUnits Units { get; set; }

Property Value

DxfUnits

Exceptions

ArgumentOutOfRangeException

Thrown when the unit set is not one of DxfUnits.

InvalidOperationException

Thrown when set on a block of a file older than R2007 (AC1021), which writes no unit of a block, or on one erased.