killswitch
Mechanical
- Jul 28, 2003
- 39
I'm looking for the swConst value for swUnitsDualLinear so I can change the secondary units :
retval = Doc.SetUserPreferenceIntegerValue(swUnitsDualLinear, swMM)
I've successfully used the following to change the primary units (type and precision) and the secondary precision:
Const swUnitsLinear = 47
Const swUnitsLinearDecimalDisplay = 48
Const swUnitsLinearDecimalPlaces = 49
Const swMM = 0
Const swINCHES = 3
Const swDetailingAltLinearDimPrecision = 26
..
retval = Doc.SetUserPreferenceIntegerValue(swUnitsLinear, swINCHES)
retval = Doc.SetUserPreferenceIntegerValue(swUnitsLinearDecimalPlaces, 3)
retval = Doc.SetUserPreferenceIntegerValue(swDetailingAltLinearDimPrecision, 2)
Thanks,
Killswitch
retval = Doc.SetUserPreferenceIntegerValue(swUnitsDualLinear, swMM)
I've successfully used the following to change the primary units (type and precision) and the secondary precision:
Const swUnitsLinear = 47
Const swUnitsLinearDecimalDisplay = 48
Const swUnitsLinearDecimalPlaces = 49
Const swMM = 0
Const swINCHES = 3
Const swDetailingAltLinearDimPrecision = 26
..
retval = Doc.SetUserPreferenceIntegerValue(swUnitsLinear, swINCHES)
retval = Doc.SetUserPreferenceIntegerValue(swUnitsLinearDecimalPlaces, 3)
retval = Doc.SetUserPreferenceIntegerValue(swDetailingAltLinearDimPrecision, 2)
Thanks,
Killswitch