brengine
Mechanical
- Apr 19, 2001
- 616
I know how to toggle Dual Disply of units on and off, but I can't figure out how to set the dual units (i.e. inch/mm, precision, tolerance)
Thanks,
Ken
Thanks,
Ken
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If (Part.GetUserPreferenceIntegerValue(swUnitsLinear) = swINCHES) Then
'Set to Metric
Part.SetUserPreferenceIntegerValue swUnitsLinear, swMM
Part.SetUserPreferenceToggle swDetailingDualDimensions, True
Part.SetUserPreferenceIntegerValue swDetailingLinearDimPrecision, 2
Part.SetUserPreferenceIntegerValue swDetailingLinearTolPrecision, 2
Part.SetUserPreferenceIntegerValue swDetailingAltLinearDimPrecision, 3
Part.SetUserPreferenceIntegerValue swDetailingAltLinearTolPrecision, 3
swApp.SendMsgToUser "Conversion to Metric made successfully"
Else
'Set to Inch
Part.SetUserPreferenceIntegerValue swUnitsLinear, swINCHES
Part.SetUserPreferenceToggle swDetailingDualDimensions, False
Part.SetUserPreferenceIntegerValue swDetailingLinearDimPrecision, 3
Part.SetUserPreferenceIntegerValue swDetailingLinearTolPrecision, 3
Part.SetUserPreferenceIntegerValue swDetailingAltLinearDimPrecision, 2
Part.SetUserPreferenceIntegerValue swDetailingAltLinearTolPrecision, 2
swApp.SendMsgToUser "Conversion to Imperial made successfully"
End If