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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Extract X, Y, Z, and C Offsets of All Components Relative to Main Part in Creo 10

DN_9887814
3-Newcomer

Extract X, Y, Z, and C Offsets of All Components Relative to Main Part in Creo 10

I need to retrieve the X, Y, Z, and C offsets of all components in an assembly relative to the main part’s coordinate system. Ideally, I’d like to export these values into an external file (CSV or TXT).
Is there a built-in method or mapkey/API/Toolkit solution to automate this?

5 REPLIES 5

Hi @DN_9887814 

 

Thank you for your question! 

 

I’d like to recommend to bring more details and context to your initial inquiry. 

Please add screenshot(s) to better understand what you are trying to do in your process. 

 

Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

This will increase your chances to receive meaningful help from other Community members. 

 

Here's what a good question for Creo ooks like. 

 

Thank you for your participation and please let me know if you need further assistance! 

 

Best regards,


Catalina
PTC Community Moderator
PTC

In a CREO 10 assembly, starting from the main part’s reference coordinate system, I need a quick way to extract the X, Y, Z coordinates and the C angle of the reference systems for each component in the assembly. Ideally, I would like to gather all these values into a single file.Thanks

StephenW
23-Emerald III
(To:DN_9887814)

When you do a mass properties on the assembly, creo automatically generates a text file with an .m_p extension in your working directory.

It includes x,y,z location of each component CG with respect to either the defualt assy coord sys or a chosen coord sys if desired.  Is this what you are looking for?

 

StephenW_0-1764683582899.png

 

I don’t mean exactly that. What I need is to obtain these coordinates based on well-defined reference systems, similar to the “Measure, Transform” tool, but with the additional possibility of including the “C” rotation (around the Z-axis). I would need all the coordinates — X, Y, Z, and C — compiled into a single supplementary file. The ultimate goal is to retrieve these offsets so they can be transferred to an EDM machine.

tbraxton
22-Sapphire I
(To:DN_9887814)

In case you are not aware the matrix generated by the measure transform tool may not be in the form that you need it to be in for your downstream use. This is something I ran into previously. Check out this old thread that may be useful to you.

 

https://community.ptc.com/t5/3D-Part-Assembly-Design/Calculate-the-transform-matrix-between-two-CSYS-features/td-p/680239 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags