Control Visibility of 3 Yes/No Parameters

Control Visibility of 3 Yes/No Parameters

Kev_D
Collaborator Collaborator
8,738 Views
23 Replies
Message 1 of 24

Control Visibility of 3 Yes/No Parameters

Kev_D
Collaborator
Collaborator

Hey

I have created a Door Family which has 3 different door panels applied. Type A = Door Flush Panel, Type B = Door Panel with 1 Glazed Panel, and Type C = Door Panel with 2 Glazed Panels. I have created types for each (A, B & C) and the visibility is turned off on the 3 types that are not being used. So when A is being used the other two are turned off (but have to be turned off manually). Is there a formula to use to turn off two visibilities automatically when one is switched on. I am aware of the not(parameter) to control 2 visibilities, but how do you control 3?

0 Likes
Accepted solutions (2)
8,739 Views
23 Replies
Replies (23)
Message 2 of 24

cbcarch
Advisor
Advisor

Are the door panel families nested and shared in the door family?

Cliff B. Collins
Registered Architect The Lamar Johnson Collaborative Architects-St. Louis, MO
0 Likes
Message 3 of 24

barthbradley
Consultant
Consultant

See Munkholm's post here: 

https://www.revitforum.org/tutorials-tips-tricks/1046-revit-formulas-everyday-usage.html

Lots of other good stuff in it too. 

Message 4 of 24

Kev_D
Collaborator
Collaborator

@cbcarch

Yes the panels are all separately nested but not shared. No need to share I don't think. I have carried all the parameters through.

0 Likes
Message 5 of 24

ToanDN
Consultant
Consultant

Yes/No parameters work best when there are two.  When you have more than two, such as your case, it's better using Family type parameter to control types.

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/EN...

0 Likes
Message 6 of 24

Kev_D
Collaborator
Collaborator

@barthbradley

 

Yes I have looked at this link many times. Some great info there. He only discusses controlling 2 visibilities, not 3. Unless I am blind.

0 Likes
Message 7 of 24

Kev_D
Collaborator
Collaborator

@ToanDN

Thank you. Yes I have created the types, but when new types are created/duplicated within a project I would like to my team to choose a panel type they require and then for me to not worry if they unchecked the other types. So I was hoping I could control this with a formula.

0 Likes
Message 8 of 24

ToanDN
Consultant
Consultant
Accepted solution

@Kev_D wrote:

@ToanDN

Thank you. Yes I have created the types, but when new types are created/duplicated within a project I would like to my team to choose a panel type they require and then for me to not worry if they unchecked the other types. So I was hoping I could control this with a formula.


That is exactly what a Family Type parameter is for .  See the example door family (2016).

 

Capture.PNGCapture1.PNG

 

 

 

 

Message 9 of 24

Kev_D
Collaborator
Collaborator

@ToanDN

Thank you. 

Learning never ends! Smiley Happy

0 Likes
Message 10 of 24

Kev_D
Collaborator
Collaborator

@ToanDN

 

So, I made the family types like you said.

Types.JPG

There are 3 door panles, and each panel is chosen to match the type. All good so far.

 

When I load it into the project and change the types, the parameter value changes to the proper type, but the actual panel in the model does not change. see images.

 

So the first is straight forward and shows the type of panel associated with that family type.

2 panel.JPG 

however, when I change the family type to another, all the values change but the actual door does not.   

Solid.JPG

Any ideas why?

 

 

0 Likes
Message 11 of 24

ToanDN
Consultant
Consultant

Can you share the door family?

0 Likes
Message 12 of 24

Kev_D
Collaborator
Collaborator

@ToanDN

Family attached

0 Likes
Message 13 of 24

ToanDN
Consultant
Consultant

None attached.

0 Likes
Message 14 of 24

barthbradley
Consultant
Consultant

..and you are sure the nested family in the host family has been assigned the label? And, that it is the correct family type? 

0 Likes
Message 15 of 24

Kev_D
Collaborator
Collaborator

It is there now

0 Likes
Message 16 of 24

Kev_D
Collaborator
Collaborator

@ToanDN

 

That is it by the looks of things. Always a simple thing you forget.

0 Likes
Message 17 of 24

ToanDN
Consultant
Consultant

- You did not assign the label to the nested panel

- Do not insert all three nested panels in the door family model space, only one

 

Capture.PNG

Capture1.PNG

0 Likes
Message 18 of 24

Kev_D
Collaborator
Collaborator

Somethin doesn't add up here. If I don't load the 3 panels into the family, how can I assign the different panels to the different family types. 

0 Likes
Message 19 of 24

cbcarch
Advisor
Advisor

Maybe it has something to do with a Family Type Catalog?

See this:

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/EN...

Cliff B. Collins
Registered Architect The Lamar Johnson Collaborative Architects-St. Louis, MO
0 Likes
Message 20 of 24

barthbradley
Consultant
Consultant

@Kev_Dwrote:

Somethin doesn't add up here. If I don't load the 3 panels into the family, how can I assign the different panels to the different family types. 


I see that you posted a solution already, so I don't know if this information is needed now, but the Family Types Parameter is specific to a Family Type. For instance, if it's a <Generic Model> type, the drop-down will show all the Generic Model Types that are loaded into the Family -- whether or not they are components you what to use/swap out for.  Additionally, when you load this Family into the Project, that Family Type Parameter drop-down will populate with every shared family type in the Project.  This can be a little problematic.  So, just an FYI FWIW.  

0 Likes