But there are occasions, such as for visibility parameters, where a family may get created, with multiple Types, and then later edited to add a new Type that requires a new Yes/No parameter that should only be turned on for the new Type. It is tedious to set each existing Type current and uncheck the newly added Yes/No parameter if there are more than two or three existing Types. Unfortunately, there is no way to specify the initial value for a newly added Yes/No parameter. Thanks to this post in the Who's afraid of the Big Bad BIM? blog, I have worked out a way to quickly get all types set to "No". I believe that what follows is the full intent of what the original article posted, but the article stops short of clearing the formula so that one or more of the Types can be set to "Yes" and therefore also does not note the need to change to a different Type when clearing the formula, so that all Types remain unchecked. [Perhaps that was not necessary in whatever version Erik was using in the summer of 2012 when the article was written.]
- Add a new Yes/No parameter to a Revit family with multiple Types, in which you want most of the Types to be set to "No". Note that all of the Types will be initially set to "Yes" (checked).
- In the Formula column for the newly added Yes/No parameter, type 1=0, and then press the ENTER key. Any expression that evaluates to false will do. Note that the toggle in the Value column is now unchecked, but it is also grayed out and locked, because it is being controlled by the formula.
- Set a different Type to be the current Type.**
- Delete the formula for the newly added Yes/No parameter.
- All of the Types are now set to "No". If you want any to be set to "Yes", set each one current, in turn, and select the toggle to check it.
** - In Revit 2016, I found that if I deleted the formula in the Type in which I originally placed it, immediately after placing it, that only that Type remained set to "No", and the others remained checked. If you want, you can change to another Type and then change back to the original to do the deletion. There may be other actions which will "set" the "No" values for all Types.
1 comment:
Excellent workaround. Thank you.
Post a Comment