BIM Software Tips: How to Round Parameters in Revit
The Revit Family Editor offers an “Integer” parameter type that allows you to round input values according to standard rounding rules. This means the value is rounded up or down based on its decimal part.
For example, if the input value is 3.25, the returned value will be 3. If it is 3.5, the value rounds up to 4.
But what if you need different rounding methods, such as always rounding up or always rounding down? How can you achieve that?
Let’s look at a simple example.
Suppose you want to round the number of steps up. This means that any value from x.01 to x.99 should round up to x + 1.
To accomplish this, follow these steps:
1. Change the number of steps parameter to the “Integer” type.
2. Use the following formula:
total height / step height + 0.49














Must log in before commenting!
Sign Up