Thursday, May 14, 2009

Advanced Revit Parameter Formula Tips

There is not a lot of documentation on the use of parameters and formulas within Revit. I will try to share some of what I learned to help people easily find the information they need.

First a key:
Parameters will always be typed with the color blue
Functions will always be Red and bold

General Information:
Formulas use the Order of Operations. Parenthesis usage is important.

Parameter types:

Functions:
Addition: +
6"+ Width
Subtraction: -
6"-Width
Multiplication:*
Width*2
Division:/
Exponentiation: ^: x^y, x raised to the power of y
Logarithm:log
Square root: sqrt: sqrt(16)
Sine:sin
Cosine:cos
Tangent:tan
Arcsine:asin
Arccosine:acos
Arctangent:atan
e raised to an x power:exp
Absolute Value:abs

Examples:
If explained
IF (condition, result-if-true, result-if-false)

Yes/No Parameter inside of an If function

condition can be replaced with a Parameter for a yes/no type. Since the parameter itself knows if its true or false already, you do not need to use any of the comparison functions = < >

Verbose statement: If StartMitered Parameter is Checked, value =0', else value =6"
Offset= if(StartMitered, 0', 0' 6")

to be continued, or updated....


www.cadnetics.com

No comments:

Post a Comment