Symbolica
How to access the individual components of a point expression?
2021-10-06T23:27:47Z
Symbolica
Summary
Details
You have an expression say aPoint = Point(1,2,3) defined in the expression editor.
How do you access just one of the components of that Point, or perform operations on it?
Solution
You can get the individual coordinates of a Point expression using the nx_x(), nx_y and nx_z() convenience routines.
For example:
Expression | Value | Units --------------------------+-------------------+------------------------- myPoint=Point(1,2,3) | Point(1,2,3) | Point myX=nx_x(myPoint) | 1 | mm myY=nx_y(myPoint) | 2 | mm myZ=nx_z(myPoint) | 3 | mm --------------------------+-------------------+-------------------------
Here's an example of how it works.
Notes and References
Hardware/Software Configuration
Platform: INTL64 OS: windows OS Version: 1064 Product: NX Application: DESIGN Version: V1899 Function: EXPRESSION