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