YviKyvi
Mechanical
- Feb 3, 2020
- 12
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:
but, there's no ZAxis...
Any help is highly appreciated!
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!