I have a two compartment sink family, with two different faucets in it. A deck mounted faucet, and a splash mounted faucet. I need the mounting height of the faucet to vary depending on the faucet type.
I've tried IF statements on both the Faucet Elevation parameter to control the Faucet Type and on the Faucet Type to control Faucet Elevation, but I can't it to accept my formulas without errors.
The easy way would be to have the user manually change both parameters, but that will lead to errors.
Gelöst! Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
If you eliminate your operator symbols from the parameters and remove the brackets from your formulas, they should work. It's a best practice to omit any operators from parameters, especially those that will be used in formulas. Revit does not handle them well.
You can't reference the Family Type in a formula, but you are able to reference a parameter that contains the Family Type.
https://www.linkedin.com/pulse/repetitions-randomness-revit-part-2-alfredo-medina/
@Alfredo_Medina 's exercise 6
1. Have a Family Type placeholder parameter for each option.
2. Assign one Family Type to each placeholder.
3. Make an Integer parameter. This is effectively a Key.
4. Make a Family Type Parameter, whose value is controlled by the formula if(Integer=1, Type1, if(Integer = 2, Type2, etc...). Type1,Type2, etc. are the placeholder family names, not the Family Type embedded in them.
5. Make a Height parameter, whose value is controlled in a similar fashion to step 4.
6. Use the Integer parameter as your method of toggling between options. As you toggle, the formula-based Family Type Parameter and the formula-based Height Parameter should begin to change.
Why don't you make the mounting height a type parameter so you can assign different heights to different types?
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.