AnsweredAssumed Answered

Setting units in a Macro.

Question asked by Reggie McKelvy on Dec 10, 2009
Latest reply on Dec 10, 2009 by Albert Alvarez

Where can I find a list of unit names/types that I can set by user preference using a macro? I am using SW 2007.


The Set User Prefs below work fine. I just need to be able to set a few others.

Part.SetUserPreferenceIntegerValue swUnitsLinear, swINCHES
Part.SetUserPreferenceIntegerValue swUnitsLinearDecimalPlaces, 3
Part.SetUserPreferenceIntegerValue swUnitsAngularDecimalPlaces, 1

Part.SetUserPreferenceIntegerValue swUnitsDualLinear, swMM
Part.SetUserPreferenceIntegerValue swUnitsDualLinearDecimalPlaces, 2


I would like to set the Unit System to IPS or change the values in the Mass/Section property units and Set Force type.


I have not been able to find these variable names.