Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 5 of 5

Thread: parameter < family type....> combine with and if statement

  1. #1
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    06:16 PM

    parameter < family type....> combine with and if statement

    Hi There,

    Ik got a family type parameter where i can choose between different nested families.
    I want to try and make the choice whithin an formula if statement.
    So I got a family door nested and I got a family door empty nested.
    I also added a yes/no parameter called door.
    The user can choose for a door yes or no by checking or unchecking the box.

    The only thing left is to add a formula in the parameter < family type....>.
    When the box is checked I want revit to choose for the nested family door,
    And when it is unchecked I want revit to choose for door empty.

    The formula would look like this: if(door , door : door , no door : door empty)
    Within the choose of a < family type....> parameter you choose the family name and family type.
    Revit tells me that this is not a valid family parameter.
    Does anyone have an idea of how to solve this problem?

    parameter &lt; family type....&gt; combine with and if statement-problem.png

  2. #2
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    06:16 PM
    parameter &lt; family type....&gt; combine with and if statement-solution.png

    I’ve managed to figure it out.

  3. #3
    New Member
    Join Date
    January 5, 2016
    Posts
    2
    Current Local Time
    01:16 PM
    Hi,

    you don't need to create a IF statement to do that.

    1. create visibility (yes/no) parameters on each door.
    2. make this parameter equals to your "door" paramater.

    Yes/No parameters don't need IF statement. See the example below:

    IF with Yes/No condition
    Length > 40
    Returns checked box (<true>) if Lenght > 40

  4. #4
    New Member
    Join Date
    January 5, 2016
    Posts
    2
    Current Local Time
    01:16 PM
    Very nice.

  5. #5
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    06:16 PM
    Only i don't want a geometry in my family that is not visible. Than there is still geometry
    in the family, only not visible.
    So i created a family where you have the geometry and all, then made a copy of that family and called it empty.
    than i deleted the geometry within this family. Now when you choose the empty family there really is no geometry.
    I did this because it needs to join with other geometry, and when you have a non visible geometry in the family it could still join with other geometry.

    Thanks for the feedback.




    Quote Originally Posted by onDynamo View Post
    Hi,

    you don't need to create a IF statement to do that.

    1. create visibility (yes/no) parameters on each door.
    2. make this parameter equals to your "door" paramater.

    Yes/No parameters don't need IF statement. See the example below:

    IF with Yes/No condition
    Length > 40
    Returns checked box (<true>) if Lenght > 40

Similar Threads

  1. Family Type Parameter and Nesting
    By billiam in forum Architecture - Family Creation
    Replies: 2
    Last Post: December 18th, 2015, 08:04 PM
  2. Family Type Parameter Help
    By laBaumba in forum MEP - Family Creation
    Replies: 9
    Last Post: October 14th, 2015, 07:00 PM
  3. shared family and <family type.....> parameter, when loaded error
    By Bross in forum Structure - Family Creation
    Replies: 1
    Last Post: November 25th, 2013, 12:56 PM
  4. select by parameter? curtain wall panels' materials by parameter, by type or family?
    By oompa_l in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: January 24th, 2013, 03:20 PM
  5. Yes/No type parameter with if statement, help
    By srsatdmi in forum Architecture - Family Creation
    Replies: 7
    Last Post: December 5th, 2012, 04: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
  •