Table of Contents

Method Of

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Of(DxfDatabase, out bool)

Gets the factor that takes the lengths of model space to millimetres: the millimetres in the drawing's INSUNITS.

public static double Of(DxfDatabase database, out bool normalised)

Parameters

database DxfDatabase

The drawing.

normalised bool

Whether the drawing says its unit: false for INSUNITS 0, whose lengths are then left as they are (factor 1).

Returns

double

The factor: 25.4 for a drawing of inches, 1 for one of millimetres or of no unit.

Exceptions

ArgumentNullException

Thrown when the drawing is null.