does SetValueString only work in imperial?

does SetValueString only work in imperial?

Ning_Zhou
Advocate Advocate
407 Views
2 Replies
Message 1 of 3

does SetValueString only work in imperial?

Ning_Zhou
Advocate
Advocate

SetValueString("2\'3\""); -> OK

SetValueString("20\""); -> OK

 

SetValueString("150mm"); -> not OK

SetValueString("150 mm"); -> not OK

 

did i miss something simple? thanks.

0 Likes
Accepted solutions (1)
408 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted 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? 

0 Likes
Message 3 of 3

Ning_Zhou
Advocate
Advocate
thanks Scott.

now it's working even though i have no idea what's going on? black Friday last week perhaps, i suspect something wrong w/ the model but it mysteriously cured itself! sorry for false alarm.
0 Likes