Control multiple visibility conditions if one visibility statement is true (yes or no)

Control multiple visibility conditions if one visibility statement is true (yes or no)

mframpton20
Enthusiast Enthusiast
1,815 Views
7 Replies
Message 1 of 8

Control multiple visibility conditions if one visibility statement is true (yes or no)

mframpton20
Enthusiast
Enthusiast

For this example I am trying to shut down two of the three Transverse top bar variants (in a detail component) if one of the three is ticked off (and vice versa for each).

 

Any Ideas?

 

Example below (which would not work when I tried it as it was citing circular references)

if statements.jpg

or(not(Transverse Top Bar 180° Hook), not(Transverse Top Bar))

or(not(Transverse Top Bar 180° Hook), not(Transverse Top Bar Hook))

0 Likes
Accepted solutions (1)
1,816 Views
7 Replies
Replies (7)
Message 2 of 8

Alfredo_Medina
Mentor
Mentor

Have you considered creating types, instead, where you pre-set all the proper choices for each type?


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 3 of 8

mframpton20
Enthusiast
Enthusiast

Thanks for the quick response Alfredo! 

 

Back history - I'm kind of taking over from where someone else left off. I do get where you are going with your response though. I have contemplated the type approach for other (simple) families but not these ones due to the complex nature of the beast. PS - This is one of the least complex versions of this detail component. We have others that do entire walls from footing to, dowels to, the wall reinforcing and then up to the first splice at the suspended slab above. To put it in perspective the can be a few dozen variations or more from slab to slab or wall to wall on a project.

 

The one I'm working with (shown above) is essentially a quick instance parametric rebar detail component that details out an entire footing with different bar end conditions (top and bottom independently), bar spacing and cover. I really want to maintain the instance nature as it has been most effective for our use and the impact of a Type based approach would impact existing projects and libraries. Additionally the types don't give the user instant feedback and I would feel teams may create way too many variations (never mind mirrored) of this reinforcing assembly.

 

I'm just trying get cute and not have to untoggle the other two yes no parameters if I check off one of the three as I only need one of them on at a time.

0 Likes
Message 4 of 8

Alfredo_Medina
Mentor
Mentor

OK, thank you for that information. Please search this forum for similar posts on this subject, in which I have proposed to use integers to control the visibility of multiple parameters. It is difficult to do it with the approach that you're using. The other approach with integers assigns the visibility to a numeric value that corresponds to an integer parameter that controls the visibility.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 5 of 8

mframpton20
Enthusiast
Enthusiast

Where should I look for this post? I've looked through this already and it's like finding a needle in a haystack.

 

Thanks

0 Likes
Message 6 of 8

Alfredo_Medina
Mentor
Mentor
Accepted solution

Here: this should take you to post # 8 in the thread, where you will see an image:

https://forums.autodesk.com/t5/revit-mep-forum/if-then-formula-and-quot-yes-no-quot-parameter/m-p/38...

 

2023-10-14_7-54-54.png


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Message 7 of 8

mframpton20
Enthusiast
Enthusiast

Thank you for cutting the weeds away Alfredo 😉

 

This linked method will work great on the more complex families I have. 

0 Likes
Message 8 of 8

Alfredo_Medina
Mentor
Mentor

Thank you for marking the solution. Glad to be useful.

 

In addition to the method shown in my previous message, it is possible to add the value of IF statements, like this:

 

2023-10-13_21-28-14.png

 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes