SetValueString("2\'3\""); -> OK
SetValueString("20\""); -> OK
SetValueString("150mm"); -> not OK
SetValueString("150 mm"); -> not OK
did i miss something simple? thanks.
Solved! Go to Solution.
Solved by Scott_Wilson. Go to Solution.
I just tried this on a project created with a metric template and I can confirm that it works for both imperial and metric input values.
SetValueString("100 mm") -> 100 mm
SetValueString("1'") -> 304.8 mm
There must be something else happening here. Are you doing this from an imperial template? Try it on a metric and see what happens.
Also what do you mean by "not OK", is it just not giving the expected value or is it generating an error?