PDA

View Full Version : Conditional statement numeric parameter name - what is it



twaldock
2010-10-22, 03:38 AM
The Revit help notes state that :
"Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters."
Does anyone know exactly what it means by numeric parameter names?

For example, If you create a text parameter named 99 then Revit recognises it as a valid parameter name. However, if you put that into a conditional statement, it just sees it as a pure number; if you put quotes around the name "99" it won't accept it.

If you Google "numeric parameter names" it gives lots of results, but every last one of them is just a copy and paste of the Revit help notes, with no further explanation.

aggockel50321
2010-10-22, 12:11 PM
A numeric parameter name would be a parameter defined as a number, integer, length...., and thus the parameter name could be used in the statement.

twaldock
2010-10-25, 03:25 AM
Thanks Andrew,
That makes sense. I was misinterpreting the phrase "numeric values" and thinking that was already implying the parameter types numeric, integer & lengths. The rest now makes sense when I see numeric values as just a plain number.

bulletproofdesign
2010-10-26, 07:26 PM
You can use numeric 'text' in formulae with a bit of clever tinkering.

Rename your 99 parameter to val1 and insert it in your formula.
then rename your val1 parameter back to 99.
voilĂ  you have a numerically named parameter in your formula....