Table of Contents

Class CadUnitsRequest

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The Drawing Units dialog of UNITS and its Direction Control, as data their command and the window share: LUNITS, LUPREC, AUNITS, AUPREC, ANGDIR, INSUNITS and ANGBASE as the dialog has them, read from the drawing's header and written there on OK as one undo step, and the Sample Output they give. Direction Control's pick closes the dialogs with SelectObjects: the command asks two points on the command line, then shows them again with the angle between them.

public sealed class CadUnitsRequest
Inheritance
CadUnitsRequest
Inherited Members

Properties

Action

Gets or sets what the dialog was closed with: OK, Cancel, or Select objects for Direction Control's pick; Cancel until set.

AnglePrecision

Gets or sets AUPREC, 0 to 8.

AngleUnits

Gets or sets AUNITS: 0 decimal degrees, 1 degrees, minutes and seconds, 2 grads, 3 radians, 4 surveyor's units.

BaseAngle

Gets or sets ANGBASE: the direction of angle nought, in radians from east.

Clockwise

Gets or sets ANGDIR: whether angles grow clockwise.

InsertionUnits

Gets or sets INSUNITS: the units content inserted is scaled to.

IsDirectionOpen

Gets or sets whether Direction Control is open, so that it is shown again after its pick.

LengthPrecision

Gets or sets LUPREC, 0 to 8: places, or the power of two of the smallest fraction in 4 and 5.

LengthUnits

Gets or sets LUNITS: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional.

SampleAngle

Gets the second line of Sample Output, 3 at 45 degrees: 3.00<45,0.00 in decimal to two places and whole degrees.

SampleLength

Gets the first line of Sample Output, the point (1.5, 2, 0) in the units chosen: 1.50,2.00,0.00 in decimal to two places.