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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to get prt file unit and don't need to open it in Creo?

WhiteChen
8-Gravel

How to get prt file unit and don't need to open it in Creo?

I have so many history parts, more than 10000, I want to know the unit (inch or mm) of every part, how can I get the unit info by batch, don't need open it in Creo one by one?

Appreciate your help.

4 REPLIES 4
BenLoosli
23-Emerald II
(To:WhiteChen)

Write a script to search your files for principal_sys_units. The next few characters will indicate the units.

Open a part file in notepad to see what is in there as text data.

Thanks for your reply, but I can't find the string "principal_sys_units" in any of my part, strange, I can find "UnitSystemDef_L03" in some parts, but not every one include this string. Could you give me further introduction?

Could you share a file to check?

Units.bmp

FYI

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags