Function Entry: GETORIENT
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: GETORIENT
Name
getorient
Class
Function
Syntax
(getorient [pt] [msg])
Arguments and Values
pt: optional base pointmsg: optional prompt
Autodesk documents pt as a 2D base point in the current UCS; a 3D point may be supplied, but measurement remains in the current construction plane.
Description
Prompts the user for an orientation angle.
Return Values
Real or nil.
Side Effects
- prompts the user
- consumes interactive input
Compatibility
Closely related to getangle, but documented separately.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
Notes
- Autodesk documents that
getorientreturns radians measured counterclockwise from the right (east), ignoringANGBASEandANGDIRin the returned value. - Autodesk documents that the user cannot respond with another AutoLISP expression.
- Autodesk explicitly distinguishes
getorientfromgetangle:getorientis for an absolute orientation,getanglefor a rotation amount.
clautolisp
clautolisp implementation deviation — not part of the normative
specification above. AutoCAD and BricsCAD collect this orientation
through the graphical drawing editor (implicitly a GUI). clautolisp has
no drawing editor — it writes the prompt to the standard output and reads
the answer as one line of text from the standard input (a TUI
interaction). Interactively this is the REPL's terminal; for scripted,
deterministic runs it is the file attached with --mock-input. A live
CAD host, when connected, restores the native GUI behavior. On the TUI
the orientation is typed as text and returned in radians, using exactly
the same angle syntax as getangle (bare number = radians; deg /
degree(s); degrees-minutes-seconds with ' and "; rd / rad /
radian(s) with an optional pi factor — e.g. 90 deg, pi rd,
4/3 pi rd). Unrecognized text returns nil.