Class CadUcsDialogRequest
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
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.
public sealed class CadUcsDialogRequest
- Inheritance
-
CadUcsDialogRequest
- Inherited Members
Remarks
The Named UCSs list is Unnamed (only while the current system has no name and is not the world), World, Previous, then the named systems A to Z, letters of either case the same. Set Current moves the black triangle and the "Current UCS" label at once, and the system becomes current at OK; a system not parallel to the view (the presenter shows the drawing from above) is refused. Rename edits a name in place: renaming Unnamed saves the current system under the name; World, Previous and Unnamed are refused as new names, as "already in use". Delete takes a row out with no question, and a current system whose name is deleted goes on as an unnamed one.
The Orthographic UCSs tab lists Top, Bottom, Front, Back, Left and Right with their depth, relative to World or a named system. A system is the axes of the face in the axes of the system it is relative to, its origin moved along its Z axis by the depth: Front relative to World with depth 5 has its origin at (0, -5, 0). Only a system whose Z axis is the world's (Top, and the others relative to a system tilted to match) can be made current. The depth and Relative to were not measured in AutoCAD 2021; they follow its documentation.
The Settings tab holds the UCS icon (On, Display at UCS origin point, Allow Selecting UCS icon, and Apply to all active viewports, which opens off every time and acts once at OK) and the UCS settings (Save UCS with viewport, Update view to Plan when UCS is changed). They are the UCSICON bits 1 and 2, UCSSELECTMODE, UCSVP and UCSFOLLOW of AutoCAD.
Properties
- Action
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
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
Gets the name the "Current UCS" label shows:
Unnamed,Worldor the name of the system.
- CurrentRow
Gets the row that is the current system as the dialog has it now, the one the black triangle marks.
- FollowToPlan
Gets or sets whether the view goes to the plan when the system changes (UCSFOLLOW).
- IconAtOrigin
Gets or sets whether the icon is drawn at the origin of the system (UCSICON bit 2).
- IconOn
Gets or sets whether the UCS icon is shown (UCSICON bit 1).
- IconSelectable
Gets or sets whether the UCS icon can be selected (UCSSELECTMODE).
- OrthoBase
Gets or sets the system the Orthographic UCSs tab is relative to: World until set.
- OrthoBaseRows
Gets the systems the Orthographic UCSs tab can be relative to: World, then the named systems.
- OrthoRows
Gets the rows of the Orthographic UCSs tab: Top, Bottom, Front, Back, Left and Right.
- PickRow
Gets or sets the orthographic row whose depth the window is picking a new origin for; null for none.
- RelativeToRows
Gets the systems Details can be relative to: Unnamed where there is a row of it, World, then the named systems.
- Rows
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
Gets or sets whether each viewport keeps its own system (UCSVP).
- Tab
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
Gets the World row.
Methods
- Delete(CadUcsDialogRow)
Deletes a named system from the list, with no question. A current system of that name goes on, with no name, as Unnamed.
- Details(CadUcsDialogRow, CadUcsDialogRow)
Gets what the Details dialog shows of a row, relative to a system.
- Details(CadUcsOrthoRow, CadUcsDialogRow)
Gets what the Details dialog shows of an orthographic row, the system it makes relative to OrthoBase, shown relative to another.
- Orthographic(CadUcsOrthoRow)
Gets the system an orthographic row makes: its axes in those of OrthoBase, the origin moved along its Z axis by the depth.
- Rename(CadUcsDialogRow, string)
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(CadUcsOrthoRow)
Sets the depth of an orthographic row to nought, as Reset does.
- SetCurrent(CadUcsDialogRow)
Makes a system current in the dialog: the black triangle and the label move, and OK makes it current in the drawing.
- SetCurrent(CadUcsOrthoRow)
Makes an orthographic system current in the dialog, as SetCurrent(CadUcsDialogRow) does a named one.
- SetDepth(CadUcsOrthoRow, double)
Sets the depth of an orthographic row, as the Orthographic UCS depth dialog does.
- TakeDepthPoint(GeoPoint3)
Gives PickRow the depth of a point picked in the drawing, the distance of the point from the origin of OrthoBase along the normal of the plane; the pick is done.