cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

From Kishore

kishore_venigan
1-Newbie

From Kishore

Hi,

I would like to get the transformation for two Csys using Pro-Toolkit.
Can you help me how do I follow to get the desired matrix .
The same result can be achieved suing Pro-Engineer as follows:

To Generate a Transformation File


Click Analysis > Measure. The Measure dialog box opens and the SELECT
menu appears.

Under Type, select Transform to generate a transformation file
containing the transformation matrix values between two coordinate
systems in an object in the active window.

Select the coordinate systems in the 1st Coordinate System and 2nd
Coordinate System boxes. The transformation matrix values between two
coordinate systems is displayed under Results. You can also click
Compute to perform the analysis

With regards,

Kishore babu .V
Sr Software Engineer,
Hi-Tech e-Soft,
A Division of HI-TECH GEARS LTD,
Millennium Plaza,Tower-B,Sushant Lok-1,
Gurgaon-122002 (Haryana) INDIA.
Tel. +91(124)2806080-84.
Mob:+91-09811804868

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Kishore,

Follow these steps to transform geometry from Csys1 to Csys2.



1. Get a handle to a ProCsys object for Csys1.

a. You can use ProSelect or you can visit features in the
model with ProSolidFeatVisit.

2. Call ProCsysDataGet to get the csys vectors.

a. Remember to call ProGeomitemdataFree when you are
finished with this data.

3. Call ProMatrixInit with the csys data to get a matrix that will
transform geometry from the csys to the solid csys.

a. The solid csys is a csys that exists in every model but
is not selectable. It cannot be seen in the Pro/E UI. It is kind of
the base csys of all geometry in a solid.

4. Transform your geometry with a function like ProPntTrfEval so it
is now relative to the solid csys.
5. Get a handle to a ProCsys object for Csys2.
6. Call ProCsysDataGet
7. Call ProMatrixInit
8. Invert the resulting ProMatrix object so the transformation
matrix is to transform geometry from the solid csys to Csys2.

a. Look in UtilMatrix.c for a function on how to do this.

9. Call ProPntTrfEval with this new matrix and the resulting point
from step #4.



Something that might also help you is to read in the API Wizard User's
Guide->Coordinate Systems and Transformations. I hope this helps.



Patrick Williams

Application Engineer

Steelcase Inc.

Kishore,

Another approach instead of transforming the geometry first to the solid
csys is to do the following:



1. Get a handle to a ProCsys object for Csys1.

a. You can use ProSelect or you can visit features in the
model with ProSolidFeatVisit.

2. Call ProCsysDataGet to get the csys vectors.

a. Remember to call ProGeomitemdataFree when you are
finished with this data.

3. Call ProMatrixInit with the csys data to get a matrix that will
transform geometry from the csys to the solid csys.

a. The solid csys is a csys that exists in every model but
is not selectable. It cannot be seen in the Pro/E UI. It is kind of
the base csys of all geometry in a solid.

4. Get a handle to a ProCsys object for Csys2.
5. Call ProCsysDataGet
6. Call ProMatrixInit
7. Invert the resulting ProMatrix object so the transformation
matrix is to transform geometry from the solid csys to Csys2.

a. Look in UtilMatrix.c for a function on how to do this.

8. Mulitply the resulting matrices from step #3 and step #7. This
will result in a matrix that will transform geometry from Csys1 to
Csys2.





Patrick Williams

Application Engineer

Steelcase Inc.
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration