Cancel
Showing results for 
Search instead for 
Did you mean: 

Get Location of a Csys dependent on another Csys NXOpen c#

Pioneer
Pioneer

Hi Guys,

i need some Help.

 

ich have 3 Csys.

The Main Csys. A Csys (2) in the Main Csys. And a Csys(3) in the Csys(2) which is in the Main Csys.

And now i want the X, Y, Z Coordinate of the Csys(3) dependent on the  Csys(2).

I tried to use Location but it gives me always the Coordinates dependent on the Main Csys.

 

Thanks for your Help !!

3 REPLIES

Re: Get Location of a Csys dependent on another Csys NXOpen c#

Honored Contributor
Honored Contributor

The API function (almost) always return coordinates in the absolute coordinate system. You can report coordinates in a different coordinate system with the help of the .MapPoint method (wrapper for the UF_CSYS_map_point function).

Re: Get Location of a Csys dependent on another Csys NXOpen c#

Legend
Legend

It can be done by developing a 4 x 4 matrix.  It involves using i,j,k  as unit vector of the "new" coordinate system, i,j,k as unit vectors of the "old" coordinate system and origins of the "new" and "old" coordinate systems.  I suggest you look this up in a text book.  One reference is

 

GEAR GEOMETRY AND APPLIED THEORY/ LI  ID:34000078106796

 

Frank Swinkels

Re: Get Location of a Csys dependent on another Csys NXOpen c#

Siemens Phenom Siemens Phenom
Siemens Phenom

This 4x4 matrix can be obtained using NXOpen.UF.UFMtx4.CsysToCsys():

 

https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/ugopen_doc...