Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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?
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,
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
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?
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.
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.
