Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify Orientation Z axis 1

Status
Not open for further replies.

YviKyvi

Mechanical
Feb 3, 2020
12
0
0
DE
Hey everybody,
I am using NX 12 and the Blockstyler. I want to use the Specify Orientation to rotate a toolingbox/bounding box, that I created. Therefore I need to get the x,y and z axis of the manipulator handle. For X and Y it's really easy, because it's given in the API. But how do I get the Z axis? Do I have to calculate it? Doesn't make any sense, that it's not givent like the other two.

This ist how it works with X and Y:
Code:
        Dim matrix2 As NXOpen.Matrix3x3 = Nothing
        matrix2.Xx = manip0.XAxis.X
        matrix2.Xy = manip0.XAxis.Y
        matrix2.Xz = manip0.XAxis.Z
        matrix2.Yx = manip0.YAxis.X
        matrix2.Yy = manip0.YAxis.Y
        matrix2.Yz = manip0.YAxis.Z

but, there's no ZAxis...

Any help is highly appreciated! :)
 
Replies continue below

Recommended for you

The UF_MTX3_initialize function will take the X and Y vectors (arrays of double values) and return an array of values representing the 3x3 matrix. This function will normalize the given vectors and calculate the Z direction vector by taking the cross product of the X and Y vectors. The resulting values can then be fed into a Matrix3x3 structure if needed.

www.nxjournaling.com
 
But first you have to decide which pill you take. The Blue or the Red one....

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Status
Not open for further replies.
Back
Top