Table of Contents

CadUnitsRequest

from OpenCAD2D import CadUnitsRequest

class CadUnitsRequest(System.Object) ยท CadUnitsRequest in the .NET reference

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 CadDialogAction.SelectObjects: the command asks two points on the command line, then shows them again with the angle between them.

Properties and fields

Action

.NET

@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None

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

AnglePrecision

.NET

@property
def AnglePrecision(self) -> int
@AnglePrecision.setter
def AnglePrecision(self, value: int) -> None

Gets or sets AUPREC, 0 to 8.

AngleUnits

.NET

@property
def AngleUnits(self) -> int
@AngleUnits.setter
def AngleUnits(self, value: int) -> None

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

BaseAngle

.NET

@property
def BaseAngle(self) -> float
@BaseAngle.setter
def BaseAngle(self, value: float) -> None

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

Clockwise

.NET

@property
def Clockwise(self) -> bool
@Clockwise.setter
def Clockwise(self, value: bool) -> None

Gets or sets ANGDIR: whether angles grow clockwise.

InsertionUnits

.NET

@property
def InsertionUnits(self) -> DxfUnits
@InsertionUnits.setter
def InsertionUnits(self, value: DxfUnits) -> None

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

IsDirectionOpen

.NET

@property
def IsDirectionOpen(self) -> bool
@IsDirectionOpen.setter
def IsDirectionOpen(self, value: bool) -> None

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

LengthPrecision

.NET

@property
def LengthPrecision(self) -> int
@LengthPrecision.setter
def LengthPrecision(self, value: int) -> None

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

LengthUnits

.NET

@property
def LengthUnits(self) -> int
@LengthUnits.setter
def LengthUnits(self, value: int) -> None

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

SampleAngle

.NET

@property
def SampleAngle(self) -> str

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

.NET

@property
def SampleLength(self) -> str

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.