2011

Table Of Contents
Convert Points Between UCS and WCS
Quick Reference
See also:
Use the Command Prompt Calculator
Normally, the program assumes all coordinates to be relative to the current
UCS. The following functions convert points between UCS and WCS.
w2u(p1) Converts point p1 expressed in the WCS to the current UCS.
u2w(p1) Converts point p1 expressed in the current UCS to the WCS.
You can use w2u to find the WCS origin in terms of the current UCS:
w2u([0,0,0])
Filtering the X, Y, and Z Components of a Point or Vector
The following functions filter the X, Y, and Z components of a point or vector.
Point-filter functions
DescriptionFunction
X and Y components of a point; Z component is set to 0.0xyof(p1)
X and Z components of a point; Y component is set to 0.0xzof(p1)
Y and Z components of a point; X component is set to 0.0yzof(p1)
X component of a point; Y and Z components are set to 0.0xof(p1)
Y component of a point; X and Z components are set to 0.0yof(p1)
Z component of a point; X and Y components are set to 0.0zof(p1)
X component of a pointrxof(p1)
Y component of a pointryof(p1)
Z component of a pointrzof(p1)
164 | Chapter 4 C Commands