Revit MEP

Revit MEP

Distinguished Contributor
Posts: 132
Registered: ‎01-20-2014
Message 1 of 3 (148 Views)

Chamfer corners aren't perfectly round

148 Views, 2 Replies
04-13-2014 11:26 PM

This formula is good by itself as a dimension calculator

1.17 * sqrt(Designed Air Flow / 1.75 m/s)

but when I do this

round(1.17 * sqrt(Designed Air Flow / 1.75 m/s))

I get inconsistent units error!!

any thoughts?

Regards,

M

The ROUND functions only work with unitless Number values, so you cannot directly round Air Velocity, Angle, or Length Parameters to name a few. The trick here is to strip the units before the ROUND function and then reapply the units at the end of the formula. Silly, I know...

= round((1.17 Hz * sqrt(Designed Air Flow / 1.75 m/s)) / 1 m/s) * 1 m/s

A simpler example of this would be:

= round(Length / 2)  (yields an error)

becomes

= round((Length / 2) / 1 mm) * 1 mm

(or you could just add the units to the "/2")

= round(Length / 2 mm) * 1 mm

*Expert Elite*
Posts: 3,421
Registered: ‎08-28-2009
Message 2 of 3 (124 Views)

Re: Chamfer corners aren't perfectly round

04-14-2014 05:29 AM in reply to: Mehdi.Kardehi

The ROUND functions only work with unitless Number values, so you cannot directly round Air Velocity, Angle, or Length Parameters to name a few. The trick here is to strip the units before the ROUND function and then reapply the units at the end of the formula. Silly, I know...

= round((1.17 Hz * sqrt(Designed Air Flow / 1.75 m/s)) / 1 m/s) * 1 m/s

A simpler example of this would be:

= round(Length / 2)  (yields an error)

becomes

= round((Length / 2) / 1 mm) * 1 mm

(or you could just add the units to the "/2")

= round(Length / 2 mm) * 1 mm

Corey D.
──────────────────────────────────────────────────────────────────────
⁞|⁞ Please use .Accept as Solution and Give Kudos as appropriate to further enhance these forums. Thank you!
Distinguished Contributor
Posts: 132
Registered: ‎01-20-2014
Message 3 of 3 (106 Views)