Set UCS
ucs_setCreate a named UCS entry with origin and axes, then make it current for drafting; inputs stay in WCS and invalid axes are rejected.
Instructions
Store a UCS table entry and make it current (AutoCAD's UCS command).
Axes are normalised to unit vectors. Every tool keeps taking and
returning WCS coordinates — the repository rule; a UCS is for the
operator's own drafting, and no tool starts interpreting inputs in it.
Refusals, before any write: a name of world (reserved), a zero-length
axis, and non-perpendicular axes — the message carries the measured angle
(tolerance 0.001°). Pack: settings · lean: no.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | UCS name | |
| origin | Yes | [x, y, z] in WCS | |
| x_axis | Yes | Direction of the new X axis (any length) | |
| y_axis | Yes | Direction of the new Y axis; must be perpendicular to x_axis |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||