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
Users should have an option to select the Measurement Unit (SI, MKS, CGS etc) on the fly everytime they create/update a WTPart (Instead of setting it from Preference as it will apply for all the cases). It should also have a mechanism that will calculate and update the attribute values if the unit of measure is updated.
For eg - If the user selected meter (m) for a length attribute and later on he updated it to mm then the attribute value should get updated automatically by multiplying it by 1000.
All units are stored internally as SI. They are converted when rendered but the same is true for entering data. If you are using values of length with units, you should be able to enter a value with units and Windchill will understand that. For example, if the user's preference is display in meters, they can enter a value of "2000 mm" and it will be interpreted correctly as 2 m.
All combinations of unit strings are here: https://support.ptc.com/help/wnc/r12.0.2.0/en/#page/Windchill_Help_Center%2FTypeMgrUnitAbout.html%23
