Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

does SetValueString only work in imperial?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Ning_Zhou
339 Views, 2 Replies

does SetValueString only work in imperial?

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

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

 

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

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

 

did i miss something simple? thanks.

2 REPLIES 2
Message 2 of 3
Scott_Wilson
in reply to: Ning_Zhou

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? 

Message 3 of 3
Ning_Zhou
in reply to: Scott_Wilson

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community