Results 1 to 3 of 3

Thread: Multiple if statements in a family? or something like it.

  1. #1
    I could stop if I wanted to
    Join Date
    2006-01
    Posts
    286

    Default Multiple if statements in a family? or something like it.

    Hello all,
    I am looking for a way to allow my parameter within my diffuser to change when the flow changes.
    I made a shared parameter called "Diffuser Text Tag Value"

    I wanted to put in a range like follows but don't know how.
    Any help would be appreciated
    Code:
    if(Flow > 0 CFM, "6x6/6Ø", " ")
    if(Flow > 100 CFM, "8x8/8Ø", " ")
    if(Flow > 220 CFM, "10x10/10Ø", " ")
    if(Flow > 345 CFM, "12x12/10Ø", " ")
    if(Flow > 400 CFM, "14x14/12Ø", " ")
    if(Flow > 545 CFM, "16x16/14Ø", " ")
    if(Flow > 900 CFM, "18x18", " ")
    if(Flow > 1200 CFM, "!!ERROR!! Too much.", " ")
    Thanks all in advance,
    Andre

    P.S. I also will be using this to size the duct connectors.

  2. #2
    Active Member
    Join Date
    2011-01
    Posts
    88

    Default Re: Multiple if statements in a family? or something like it.

    You would need to nest the if statements. This should work:
    if(Flow > 1200 CFM, "!ERROR!", if(Flow > 900 CFM, "18x18", if(Flow > 545 CFM, "16x16/14Ø", if(Flow > 400 CFM, "14x14/12Ø", if(Flow > 345 CFM, "12x12/10Ø", if(Flow > 220 CFM, "10x10/10Ø", if(Flow > 100 CFM, "8x8/8Ø", "6x6/6Ø")))))))

    I think I wrote that all down correctly...

  3. #3
    I could stop if I wanted to
    Join Date
    2006-01
    Posts
    286

    Default Re: Multiple if statements in a family? or something like it.

    Quote Originally Posted by neightyeight View Post
    You would need to nest the if statements. ......
    It worked thanks. I had thought of that I just wasnt sure some of the formatting for the families.

    Thanks again,
    Andre

Similar Threads

  1. Family Programming - IF((AND)) Statements
    By cedwards.202634 in forum Revit MEP - General
    Replies: 2
    Last Post: 2011-11-03, 12:10 AM
  2. Multiple column family
    By clhattel in forum Revit Structure - General
    Replies: 1
    Last Post: 2010-05-17, 10:50 PM
  3. Multiple Connections on a Family
    By mwalker.87963 in forum Revit MEP - Families
    Replies: 1
    Last Post: 2009-11-05, 04:22 AM
  4. Multiple Annotations in one family?
    By wags5116 in forum Revit MEP - Families
    Replies: 2
    Last Post: 2009-04-24, 01:52 PM
  5. Multiple openings (with yes/no) in a family
    By Geeyou-NZ in forum Revit Architecture - Families
    Replies: 1
    Last Post: 2008-01-15, 08:10 PM

Posting Permissions

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