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: 

ParameterType and StorageType

1 REPLY 1
Reply
Message 1 of 2
Anonymous
380 Views, 1 Reply

ParameterType and StorageType

Hi, would you guys please help me how to use StorageType and ParameterType in 'switch case' mode?

 

I've attached the script below, please tell how to fix these issues that I have encountered:

 

1) how can I use ElementId type in the StringBuilder?

2)where should I use the ParameterType and StorageType?

3)how to use ParamterType in 'switch case' mode?

 

I'm a newbie, I know these questions are so general.

 

I would be so appreciated if you help me through...

 

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

@Anonymous 

I can answer the first one.

 

For ElementId storage types, you can use AsDouble() to get the internal units, or AsValueString() to get what you see in Revit.

 

The other two, if it is formatting you are after, you might want to check in UnitFormatUtils.

 

Thanks,

 

Matt

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

Post to forums  

Autodesk Customer Advisory Groups


Rail Community