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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to find out if the part is a metric or inch part in toolkit?

sa-8
1-Newbie

How to find out if the part is a metric or inch part in toolkit?

I need to know if the part is mm or inch as I need to set different text heights for each case. Can you please help me find the api to do this?


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.
1 REPLY 1
TomasLoun
4-Participant
(To:sa-8)

ProUnitsystem unit_system;

ProUnititem unit;

ProMdlPrincipalunitsystemGet(currentModel, &unit_system);

ProUnitsystemUnitGet(&unit_system, PRO_UNITTYPE_LENGTH, &unit);

unit.name is holding then "in" or "mm" or other values...

Top Tags