Table of Contents

Method TryLength

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TryLength(string, int, out double)

Reads a length typed in a drawing's units: a number as ever, and in engineering and architectural units feet and inches as AutoCAD reads them, 1'3", 1'-3-1/2" or 3-1/2"; in architectural and fractional units a fraction, 15-1/2.

public static bool TryLength(string text, int lunits, out double value)

Parameters

text string

The text typed.

lunits int

LUNITS.

value double

The length, in drawing units.

Returns

bool

Whether it read.