Revit MEP

Reply
Distinguished Contributor
Mehdi.Kardehi
Posts: 132
Registered: ‎01-20-2014
Message 1 of 3 (148 Views)
Accepted Solution

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*
CADastrophe
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.                                                                                                                  ADSK_Logo_EE_2013.png    AutoCAD 2014 User  Revit 2014 User
──────────────────────────────────────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate to further enhance these forums. Thank you!
Distinguished Contributor
Mehdi.Kardehi
Posts: 132
Registered: ‎01-20-2014
Message 3 of 3 (106 Views)

Re: Chamfer corners aren't perfectly round

04-14-2014 05:54 PM in reply to: CADastrophe

Thanks mate...I like the unit consitency check in Revit but in this case...it's just silly as you said:smileywink:

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.