Revit Hints and Hacks: Easy ON/OFF Switch

Switch.jpg

Often when working with families I will add a parameter that is a Yes/No parameter. Easy peasy if there is only one type in a family. I can just set it after I add it. If I want it to be Yes for all types, done. That is the default setting. But what if you want it to be set to No on all types? Hold that thought.

We know how to set a text, number, or integer parameter value for all types. We can even do some mechanical, electrical, plumbing, and structural values for all types. We just use the Formula column and put in the value. If it is in the formula, it sets it for all types in the family. For example, here I have FL Amps set to 6 and Volts set to 120 with a formula. (Note: you don’t have to add the A or the V there, it is automatic.)

donniataborhanson_0-1651096652954.jpeg

You try typing in a “no” in the Formula for a Yes/No parameter and you get your hand slapped by Revit with a message that it is not valid.

donniataborhanson_1-1651096676374.jpeg

So just how do you get the no value set with a formula? You can use 1=0 which of course is not true. Want them all to be yes, 1=1 which is true.

donniataborhanson_2-1651096719476.jpeg

When you are finished, you can remove those formulas if you wish to have them editable in the families.

If you want to see more about formulas in families check out the Community Conversation on Favorite, Fabulous, Formulas for Families in Revit.

https://forums.autodesk.com/t5/community-conversations/favorite-fabulous-formulas-for-families-in-re...

 

Donnia Tabor-Hanson aka CADMama

Revit Family Counselor

Twitter @DonniaTH

donniataborhanson_3-1651096732733.png

 

 

 

6 Comments