Table of Contents

CadUcsDialogRequest

from OpenCAD2D import CadUcsDialogRequest

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

The UCS dialog of UCSMAN (UC), as data its command and the window share: AutoCAD 2021's three tabs, Named UCSs, Orthographic UCSs and Settings. It holds a working copy of the drawing's systems; nothing reaches the drawing until the command applies it on OK, and then everything the dialog changed is one undo step named UCSMAN. Cancel, Esc and the close button apply nothing.

Properties and fields

Action

.NET

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

Gets or sets what the window did: OK, Cancel, or PickPoint (a new origin for the depth of an orthographic system, then the dialog is shown again).

ApplyToAllViewports

.NET

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

Gets or sets whether OK gives every viewport the icon settings, as UCSICON All. It is off every time the dialog opens and acts once. A space has one view and one icon here, so on or off, OK gives the same result.

CurrentName

.NET

@property
def CurrentName(self) -> str

Gets the name the "Current UCS" label shows: Unnamed, World or the name of the system.

CurrentRow

.NET

@property
def CurrentRow(self) -> CadUcsDialogRow

Gets the row that is the current system as the dialog has it now, the one the black triangle marks.

FollowToPlan

.NET

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

Gets or sets whether the view goes to the plan when the system changes (UCSFOLLOW).

IconAtOrigin

.NET

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

Gets or sets whether the icon is drawn at the origin of the system (UCSICON bit 2).

IconOn

.NET

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

Gets or sets whether the UCS icon is shown (UCSICON bit 1).

IconSelectable

.NET

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

Gets or sets whether the UCS icon can be selected (UCSSELECTMODE).

OrthoBase

.NET

@property
def OrthoBase(self) -> CadUcsDialogRow
@OrthoBase.setter
def OrthoBase(self, value: CadUcsDialogRow) -> None

Gets or sets the system the Orthographic UCSs tab is relative to: World until set.

OrthoBaseRows

.NET

@property
def OrthoBaseRows(self) -> System.Collections.Generic.IReadOnlyList[CadUcsDialogRow]

Gets the systems the Orthographic UCSs tab can be relative to: World, then the named systems.

OrthoRows

.NET

@property
def OrthoRows(self) -> System.Collections.Generic.IReadOnlyList[CadUcsOrthoRow]

Gets the rows of the Orthographic UCSs tab: Top, Bottom, Front, Back, Left and Right.

PickRow

.NET

@property
def PickRow(self) -> CadUcsOrthoRow | None
@PickRow.setter
def PickRow(self, value: CadUcsOrthoRow | None) -> None

Gets or sets the orthographic row whose depth the window is picking a new origin for; null for none.

RelativeToRows

.NET

@property
def RelativeToRows(self) -> System.Collections.Generic.IReadOnlyList[CadUcsDialogRow]

Gets the systems Details can be relative to: Unnamed where there is a row of it, World, then the named systems.

Rows

.NET

@property
def Rows(self) -> System.Collections.Generic.IReadOnlyList[CadUcsDialogRow]

Gets the rows of the Named UCSs list in the order AutoCAD shows them: Unnamed where there is one, World, Previous, then the named systems A to Z, letters of either case the same.

SaveWithViewport

.NET

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

Gets or sets whether each viewport keeps its own system (UCSVP).

Tab

.NET

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

Gets or sets the tab shown: 0 for Named UCSs, 1 for Orthographic UCSs, 2 for Settings. The command keeps it for the next time, as AutoCAD's dialog opens on the tab used last.

World

.NET

@property
def World(self) -> CadUcsDialogRow

Gets the World row.

Methods

Delete

.NET

def Delete(self, row: CadUcsDialogRow) -> None

Deletes a named system from the list, with no question. A current system of that name goes on, with no name, as Unnamed.

Details

.NET

def Details(self, row: CadUcsDialogRow, relativeTo: CadUcsDialogRow) -> CadUcsDetails

Gets what the Details dialog shows of a row, relative to a system.

def Details(self, row: CadUcsOrthoRow, relativeTo: CadUcsDialogRow) -> CadUcsDetails

Gets what the Details dialog shows of an orthographic row, the system it makes relative to CadUcsDialogRequest.OrthoBase, shown relative to another.

Orthographic

.NET

def Orthographic(self, row: CadUcsOrthoRow) -> CadUcs

Gets the system an orthographic row makes: its axes in those of CadUcsDialogRequest.OrthoBase, the origin moved along its Z axis by the depth.

Rename

.NET

def Rename(self, row: CadUcsDialogRow, name: str) -> CadUcsDialogError

Renames a row in place. A named system takes the name; Unnamed is saved under it, the current system as it stands, and becomes a named row.

ResetDepth

.NET

def ResetDepth(self, row: CadUcsOrthoRow) -> None

Sets the depth of an orthographic row to nought, as Reset does.

SetCurrent

.NET

def SetCurrent(self, row: CadUcsDialogRow) -> str

Makes a system current in the dialog: the black triangle and the label move, and OK makes it current in the drawing.

def SetCurrent(self, row: CadUcsOrthoRow) -> str

Makes an orthographic system current in the dialog, as CadUcsDialogRequest.SetCurrent does a named one.

SetDepth

.NET

def SetDepth(self, row: CadUcsOrthoRow, depth: float) -> None

Sets the depth of an orthographic row, as the Orthographic UCS depth dialog does.

TakeDepthPoint

.NET

def TakeDepthPoint(self, world: GeoPoint3) -> None

Gives CadUcsDialogRequest.PickRow the depth of a point picked in the drawing, the distance of the point from the origin of CadUcsDialogRequest.OrthoBase along the normal of the plane; the pick is done.