VB.NET set wcs help
VB.NET set wcs help
(OP)
Hi Everyone
I am trying to write a program that with user input sets the wcs. UG documentation says to use this
Public Sub SetOriginAndMatrix(ByVal origin As NXOpen.Point3d, ByVal matrix As NXOpen.Matrix3x3)
getting the 3 points is easy my problem is how do you figure out what the 3 x 3 matrix is? I know what the numbers mean but I have no idea how to figure them out it is different for every wcs position and there is no documentation for how to figure it out. Please help !!!!!
Smitty
I am trying to write a program that with user input sets the wcs. UG documentation says to use this
Public Sub SetOriginAndMatrix(ByVal origin As NXOpen.Point3d, ByVal matrix As NXOpen.Matrix3x3)
getting the 3 points is easy my problem is how do you figure out what the 3 x 3 matrix is? I know what the numbers mean but I have no idea how to figure them out it is different for every wcs position and there is no documentation for how to figure it out. Please help !!!!!
Smitty





RE: VB.NET set wcs help
Or if you type 'rotation matrix' into your favorite search engine it will turn up lots of other links.
I don't currently have a .NET enabled version of NX to verify this on, but it is my best guess.
RE: VB.NET set wcs help
The "point3d" is the origin of the new wcs from absolute (X0,Y0,Z0)
The 3x3 matrix is basiclly the coordinates from absolute of a point on the new wcs x axis, a point on the new wcs y axis, and a point on the new wcs z axis.
As each point has an x,y,z coordainte you get 3 values for each of the 3 points defining the axis giving you a 3x3 matrix.
X1 Y1 Z1
Xx Yx Zx
Xy Yy Zy
Xz Yz Zz
If you record a journal with a very basic wcs move it will create the 3x3 matrix and you can get a feel for how to define each of these movements in the array.
Mark Benson
Aerodynamic Model Designer
RE: VB.NET set wcs help
thanks