Vous êtes sur la page 1sur 3

Working with Formulas in Revit Southern Arizona Revit User Group

Design By Many
February 6, 2011

SARUG Meeting February 2011

Working with Formulas in Revit


Theres a nice synopsis on Revit formulas and syntax at: http://revitfamilies.blogspot.com/2005/10/revit-formulae.html Thanks to Mike Hardy Brown for the post. Partially duplicated below incase we lose the link. _______________________ TIP: Keep your units consistent. Do not mix units in your formulas. You can use constants with no units assigned to them. Length = Height + Width + sqrt(Height*Width) Length = Wall 1 (11000mm)+ Wall 2 (15000mm) Area = Length (500mm) * Width (300mm) Volume = Length (500mm) * Width (300mm) * Height (800 mm) Width = 100m * cos(angle) x = 2*abs(a) + abs(b/2) Create the family geometry. Create and label dimensions to the geometry. See Labeling Dimensions. Do not select the Instance Parameter option. In the Family Editor, formulas are available for type parameters only. Click Family Types from the Design Bar. In the Formula column next to the appropriate parameter, type the formula for the parameter. Notice that the formula begins with an equal sign (=). Formulas can comprise conditional statements. You statements in the Formula box for a numerical parameter. A conditional statement uses this structure: IF (, , ) This means that values are entered for the parameter, depending on whether the condition is satisfied (true) or not satisfied (false). If the condition is true, return the true value. If the condition is false, return the false value. Conditions can use numeric values, numeric parameter names, or Yes/No parameters. You can use the following comparisons in a condition: <, >, =. You can also use Boolean operators with a conditional statement: AND, OR, NOT. Currently, <= and >= are not implemented. To express such a comparison, you can use a logical NOT. For example, a<=b can be entered as NOT(a>b). The following are some sample formulas that use conditional statements. enter conditional

Pages
About SARUG Contact Administrators Monthly Meeting Info RSS Feed Subscription

Categories
Arrays (2) Assembly Code (2) BIM Secondary Apps (12) Databases (2) Dependent Views (1) Details & Detailing (1) Education (15) Events (5) Facilities Management (2) Families (8) How To's (14) I.P.D. (7) License (2) Meeting (18) News (10) Opinion (4) Production Optimization (16) Rendering (3) Revit Architecture 2011 (13) Revit Architecture 2012 (4) Revit Classes (5) Revit MEP (4) Schedules & Formulas (5) Stairs (1) Standards (7) Templates (2) Tips and Tricks (22) Troubleshooting (9) Uncategorized (4) Welcome (1)

Archives

http://sarevitusergroup.wordpress.com/2011/02/06/working-with-formulas-in-revit/[19-05-2011 19:03:48]

Working with Formulas in Revit Southern Arizona Revit User Group


Simple IF: =IF (Length < 3000mm, 200mm, 300mm) IF with logical AND: =IF ( AND (x = 1 , y = 2), 8 , 3 ) IF with logical OR: =IF ( OR ( A = 1 , B = 3 ) , 8 , 3 ) IF with Yes/No condition: =IF (Long, 50, 60) where Long is a Yes/No parameter defined as Long = Length > 40 Embedded IF statements: =IF ( Length < 35 , 2 6 , IF ( Length < 45 , 3 , IF ( Length < 55 , 5 , 8 ) ) ) The following are valid formula abbreviations. Addition + Subtraction Multiplication* Division/ Exponentiation^: x^y, x raised to the power of y Logarithmlog Square rootsqrt: sqrt(16) Sinesin Cosinecos Tangenttan Arcsineasin Arccosineacos Arctangentatan e raised to an x powerexp Absolute Valueabs Driving Revit Functionality Carl Share this:
May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010

search archives

Other Revit User Groups


Denver Revit Users Group Phoenix Revit User Group

Revit Blogs
BIM Apps Buildz Design Reform Malleristic Revitation

Facebook

Email

Print

Revit Detail Revit OpEd Revit3D.com The Revit Kid

Posted in Production Optimization, Schedules & Formulas |

SARUG Links
Like Be the first to like this post.
BIM Co-op LinkedIn Livestream

Leave a Reply
Your email address will not be published. Required fields are marked *
Name * Email * Website

Meta
Register Log in WordPress.com

Notify me of follow-up comments via email.

Post Comment

http://sarevitusergroup.wordpress.com/2011/02/06/working-with-formulas-in-revit/[19-05-2011 19:03:48]

Working with Formulas in Revit Southern Arizona Revit User Group

Notify me of new posts via email.

Blog at WordPress.com. Theme: Neat!. Entries (RSS) and Comments (RSS).

http://sarevitusergroup.wordpress.com/2011/02/06/working-with-formulas-in-revit/[19-05-2011 19:03:48]

Vous aimerez peut-être aussi