Results 1 to 2 of 2

Thread: Using If statement and integer parameter to control Family Type parameter

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2018-10
    Posts
    1
    Login to Give a bone
    0

    Default Using If statement and integer parameter to control Family Type parameter

    Hello all,

    I am having trouble to using if statement to control different handle type on a faucet.

    Here is my setup. I have 5 different handle family nested into the main family.

    Faucet_Handle (Family parameter) The nested family are 1_Handle, 2_Handle, 3_Handle, 4_Handle, and 6_Handle
    Handle (Integer parameter) 1,2,3,4,6

    My formula for family parameter is as follow:
    if ( Handle = 1, 1_Handle , if ( Handle = 2, 2_Handle , if ( Handle = 3, 3_Handle , if ( Handle = 4, 4_Handle , if ( Handle = 6, 6_Handle , 1_Handle ) ) ) ) )

    But it keeps saying 2_Handle is not a valid parameter.

  2. #2
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,687
    Login to Give a bone
    0

    Default Re: Using If statement and integer parameter to control Family Type parameter

    I'd check you're spelling. If you're sure that's correct, put the parameter you want to use in "Quotes".
    For things like that I tend to use a Family type selector parameter and just go that route.
    There was a presentation at BiLT 2yrs ago that shows you how to set up a family with a type selector and have it fixed to the type so you can't change it once it's been set.
    The Method you're using works, but for me it's to complicated. I'd rather have 6 types of sinks, one with each faucet. Just my 2 cents. Hope it helps.

Similar Threads

  1. 2017: Family Type Parameter Issue - Instance Dimension not Adjustable by Type Parameter
    By brycebr in forum Revit Architecture - Families
    Replies: 0
    Last Post: 2018-06-11, 04:14 PM
  2. Replies: 12
    Last Post: 2013-10-26, 03:33 PM
  3. 2013: How to translate a number type parameter as a text type parameter?
    By mike99 in forum Revit Architecture - General
    Replies: 2
    Last Post: 2013-04-03, 12:03 AM
  4. Family Type Parameter
    By kmarquis in forum Revit Architecture - General
    Replies: 0
    Last Post: 2009-11-02, 03:42 PM
  5. integer parameter problem
    By steedlei in forum Revit Architecture - Families
    Replies: 10
    Last Post: 2007-10-24, 03:27 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
  •