How to get Revit project units to round up.

How to get Revit project units to round up.

andrew_muir2
Explorer Explorer
1,890 Views
3 Replies
Message 1 of 4

How to get Revit project units to round up.

andrew_muir2
Explorer
Explorer

Im currently trying to get my gpm units to round up, instead of to the nearest. please see snap shots for clarification.
the runtal is reading 2.310 gpm, and i want it to round up to 2.50 gpm, but revit rounds it to 2.25 gpm. any idea how to fix?

 
0 Likes
Accepted solutions (1)
1,891 Views
3 Replies
Replies (3)
Message 2 of 4

amarkonathala
Advocate
Advocate

amarkonathala_0-1616332186969.png

Check by rounding the element to 0.5

 

0 Likes
Message 3 of 4

iainsavage
Mentor
Mentor
Accepted solution

The parameter value is presumably controlled by a formula in the family and you could, I think, use the roundup function in an equation.

It only rounds to an integer value so what I think you would do in a formula is divide the initial value by 0.5, roundup the result, then multiply this result by 0.5.

E.g.

2.31/0.5 = 4.62.

roundup(4.62)= 5

5*0.5=2.5

Message 4 of 4

iainsavage
Mentor
Mentor

Of course if you want to keep the resolution at a quarter unit, change the divisor to 0.25 instead of 0.5:

2.31/0.25=9.24, roundup=10, 10*0.25=2.5

2.24/0.25=8.96, roundup=9, 9*0.25=2.25

etcetera.

0 Likes