Skip to main content
1-Visitor
September 17, 2016
Question

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

  • September 17, 2016
  • 1 reply
  • 987 views

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-Visitor
September 23, 2016

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...