Revit IF and YES/NO parameters

Revit IF and YES/NO parameters

Anonymous
Not applicable
6,359 Views
12 Replies
Message 1 of 13

Revit IF and YES/NO parameters

Anonymous
Not applicable

Hey everyone,

 

I'm trying to make a door family that basicaly uses a YES/NO parameter for it's door panels, i want the family to have the option to select between the different options for doors types (smooth, full glass, light etc...) with the visability YES/NO parameters but in order for 1 door to apear, i would like to turn off the others, for example, if i chouse the smooth door panel, i would like the other YES/NO parameters to be turned off.

 

I was trying to look up the correct example for my situation but unfortunately with no luck, i am uploading the family in order for you guys (and girls) to see what i'm talking about, please help me with the problem Smiley Embarassed

0 Likes
Accepted solutions (3)
6,360 Views
12 Replies
Replies (12)
Message 2 of 13

ennujozlagam
Mentor
Mentor

hello, your family looks okey once you load into a project. i attached back your file. thanks

 

1.JPG3.JPG





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
Message 3 of 13

Anonymous
Not applicable

Hi danny068,

 

usually the formulas are like:

 

Smooth Door = AND(NOT(Full Glass Door), NOT(Double Glass Door))

 

then the parameter Smooth Door shows TRUE, if both are not. The moment one of the others is TRUE, Smooth Door shows FALSE. But if you try to apply this formula also to the others you got a chain in your definition, because the parameters depend on each other.

 

Maybe you should try to work with family types to choose between this options and not use this parameters. Just a suggestion.

Message 4 of 13

Anonymous
Not applicable

Excuse me ennujozlagam, but the file that you have uploaded is not working for me the way you are showing, the other door panel do not LOCK when you choose 1 and the 2 other are still open for selection.

0 Likes
Message 5 of 13

Anonymous
Not applicable

I wouldn't use a yes/no parameter for this. You will find much better functionality and user control by using the 'Family Type...' parameter. I assume your panels are all nested into the host family so should work fine. better than ticking a bunch of boxes... i think. 

Message 6 of 13

Anonymous
Not applicable

beat me to it hmeyer by 3 minutes!

0 Likes
Message 7 of 13

Anonymous
Not applicable
Thanks for the reply hmeyerTPE75,

I was thinking of doing this the "simple way" using simple types with basic Visibility YES/NO parameters, but we at the firm, would like to limit the option for mistakes and errors so no one would be able to pick 2 door panels in a single family type.
It's more complex, i know, but we would like to check this as a solution.
0 Likes
Message 8 of 13

Anonymous
Not applicable
Accepted solution

For any other possible way to use formulas in Revit you should maybe chek out THIS.

 

But I still think, if you just try to limit mistakes, then a "Family Type" would be better. A user who has no experience with Revit will just choose between the Types. To know you can click on the Button "Edit Type" to change Type Parameters shows me, that the user thinks he has to change something and for that hopefully thinks first before changing something stupid. But a user who just wants to apply a fully glassed Door would probably just use the Family Type Full Glass Door.

 

Message 9 of 13

L.Maas
Mentor
Mentor
Accepted solution

It is possible. But I think too much work.

What you can do is create three new parameters (e.g SD, FGD, DD). These are the panel selections. Than for Smooth Door etc you can create formulas

 

AndOR.png

 

You see it gets quite complex. In this instance I took into account when two boxes are checked, when all boxes are checked and when no boxes are checked. In all cases (not fully tested) you will end up with a single panel, Where Smooth Door has highest precedence (for example when all or no check boxes are checked).

 

So this is for three panels. Imagine doing this for four or more panels....yikes.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 10 of 13

Keith_Wilkinson
Advisor
Advisor
Accepted solution

You will never get a good solution for this using yes/no parameters simply because the basic functionality isn't there in Revit - i.e. the ability to select only one of a series of yes/no parameters.  Anything you do will be a workaround and your users will hate you for it.

 

As @L.Maas has illustrated you can get something to work in the background but you can still select all threee panel types which is arguably more confusing to the user and more likely to lead to problems.

 

Keep it simple - either use different door families (there is a desire to encorporate as much into 1 family as possible but often its just as easy to have 2 families - this provides clarity for the user and also their easier to maintain) or as others have suggested use the Family Types parameter - this is what it's intended for.  My preference is the former.



"Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."
Maimonides
Message 11 of 13

Anonymous
Not applicable

Thanks everyone for the quick and good advices!

 

Have a nice weekend everybody.

Smiley Happy

0 Likes
Message 12 of 13

alessandrojb
Contributor
Contributor

If anyone comes across this thread again and like me wasn't satisfied with the answers try choosing the option with numbers as shown here (Revit still can't use text in formulas though xD).

another option for controlling your family based on the type of a nested family here.

 

source credit: https://www.revitforum.org/node/23193

0 Likes
Message 13 of 13

Alfredo_Medina
Mentor
Mentor

Another option is to use integers for the options, and then do this: https://forums.autodesk.com/t5/revit-mep-forum/if-then-formula-and-quot-yes-no-quot-parameter/m-p/38...


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