See the top rated post in this thread. Click here

Results 1 to 3 of 3

Thread: Nested IF statements for Lintel family

  1. #1
    Active Member
    Join Date
    2013-07
    Location
    Cleveland, OH
    Posts
    56
    Login to Give a bone
    0

    Question Nested IF statements for Lintel family

    I am trying to make a custom Steel Lintel Family and would like for the extrusion of the angle legs be driven by the Parameter OPENING WIDTH.

    I have most of the family working except the formula portion. I have read on nested IF statements, but I am STILL having issues.

    Right now I have: if (OPENING WIDTH<4', 3 1/2", if (OPENING WIDTH<6', 5"))

    I keep getting the error BAD IF STATEMENT format.

    What I would like to happen is for opening smaller than 4'-0" use a 3 1/2" angle leg and for opening greater than 4'-0" but smaller than 6'-0" use a 5" angle leg. Eventually I do want to add a thir condition to the statement, but if I can't get this to work expanding on it is hard.

    Where am I going wrong? Thanks for the assistance.

  2. #2
    All AUGI, all the time CADastrophe's Avatar
    Join Date
    2012-01
    Location
    Site of the next CADaclysm
    Posts
    813
    Login to Give a bone
    1

    Default Re: Nested IF statements for Lintel family

    IF/THEN/ELSE statements need all three arguments to be valid. Your statement is missing a final ELSE statement, which would be what occurs if no other conditions are met.

    Your formula: if (OPENING WIDTH<4', 3 1/2", if (OPENING WIDTH<6', 5", ELSE))

    All you have to do to correct your formula is enter a value you would like to be returned (as the ELSE argument) if OPENING WIDTH is greater than or equal to 6'.

  3. #3
    Active Member
    Join Date
    2013-07
    Location
    Cleveland, OH
    Posts
    56
    Login to Give a bone
    0

    Default Re: Nested IF statements for Lintel family

    Thanks! I will give that a try. That makes sense. This is the first family I have made with nested IF statements.

Similar Threads

  1. 2014: Lintel Family
    By kROSEMAN in forum Revit Structure - General
    Replies: 3
    Last Post: 2014-06-06, 09:39 AM
  2. 2013: Conditional Statements and Nested Families
    By kROSEMAN in forum Revit Structure - Families
    Replies: 0
    Last Post: 2014-02-10, 10:52 PM
  3. 2014: Nested family cuts wall below midpoint of nested family but not above (in plan)
    By CBroda in forum Revit Architecture - Families
    Replies: 7
    Last Post: 2013-09-24, 05:27 PM
  4. Nested Boolean Statements in Yes/No Parameters
    By apollodacreed in forum Revit Architecture - Families
    Replies: 1
    Last Post: 2009-08-05, 07:28 PM
  5. A lintel in section nested within window family
    By bayejid_bd in forum Revit Architecture - General
    Replies: 1
    Last Post: 2006-02-06, 09:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •