Value of a Multiline Parameter

Value of a Multiline Parameter

Rockit_for_Revit
Advocate Advocate
535 Views
2 Replies
Message 1 of 3

Value of a Multiline Parameter

Rockit_for_Revit
Advocate
Advocate

Please can someone help me get the value of a Multiline Parameter?

 

Neither of he flowing is giving me any value 

Parameter.AsString

Parameter.AsValueString

 

Kind Regards

David

 

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

aricke59
Enthusiast
Enthusiast
Accepted solution

Since it is a multi line parameter you would definitely want to use "parameter.asString" - "asValueString" is really more about numbers being presented fully formatted e.g. 20mm.

 

Try using "Revit Lookup" to make sure you are actually picking up on the correct parameter. Perhaps you are actually trying to get the value from an incorrect parameter or even a different element.

 

Doubling up of parameters named identically is not rare and can lead to lots of confusion.

0 Likes
Message 3 of 3

JimJia
Alumni
Alumni

Dear David,

 

In order to understand exactly what you mean and be able to research possible reasons for the discrepancy between the observed and expected behavior, Could you provide us: 
· A complete yet minimal Revit sample model to run a test in.
· A complete yet minimal macro embedded in the sample model or Visual Studio solution with add-in manifest that can be compiled, loaded, run and debugged with a single click to analyse its behavior live in the sample model.
· Detailed step-by-step instructions for reproducing the issue, e.g. which element to pick, what command to launch etc.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes