also, i'm trying to use a button to change a userdro(1011) between inch and mm.
below is what i have. it works but i have to toggle unit button(106), THEN click
my button and it changes back to whichever is opposite from what it was before.
if i enter 1" and click the button, the dro changes to 25.4mm. if i click the same button,
it should change back to 1". doesn't have to say " or mm.
Thanks for any help !
InchMM = GetUserDRO(1011)
If GetOEMLED(802) Then
SetUserDRO(1011 , InchMM*25.4)
Else
SetUserDRO(1011 , InchMM/25.4)
End If