Characters in Text: backslash: \" |
Set a YES/NO with another parameter:Force yes/no parameters to be checked or unchecked Force checked = Force unchecked = |
Conditional statementsif (<condition>, <result-if-true>, <result-if-false>)Supported Conditional Operators: Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters. Currently, <= and >= are not implemented. To express such a comparison, you can use a logical Sample if Statements: Common Clarity: Returns Strings: Using logical AND Using logical OR Nested if statements Returning the greatest of multiple valuesReturn a parameter to return the greatest value/length of the 3:(Length A, Length B, Length C) Return Length (Returns the greatest of the three length parameters) Return Length = Another option is to use an extra "Calc" parameter, which is a bit more clumsy but also way easier and more manageable for us mortals. Calc = Return Length = And a third option: Return Length = Credit to: Ekkonap who posted this on May 23rd 2011. |
Math Samples: |
CirclesPercentSquare RootExponentiation(the operation of raising one quantity to the power of another)X raised to the power of Y = X ^ Y
E raised to an x power LogarithmThe logarithm of a number to a given base is the exponent to which the base must be raised in order to produce that number. For example, the logarithm of 1000 to base 10 is 3, because three factors of 10 must be multiplied to yield a thousand: 10×10×10 equals 1000Revit usage =
|
Trigonometry for right triangles:Slope: |
Known: a+b c = A = B = | ![]() |
Known: a+c b = A = B = | ![]() |
Known: b+c a = A = B = | ![]() |
Known: c + A a = b = B = | ![]() |
Known: c + B a = b = A = | ![]() |
Known: a + B b = c = A = | ![]() |
Known: b + A a = c = B = | ![]() |
Known: a + A b = c = B = | ![]() |
Known: b + B a = c = A = | ![]() |
Range of ValuesGiven the following parameters:Specify a range of valid entries, with the min_value and max_value parameters; then, use the actual value if it is within the range; otherwise, use your minimum or maximum values. Credits: Alfredo Medina, who posted this on March 23rd 2011 |
RoundingFor Length:
Simple use Results:
|
Samples: |