So I made an instance family type parameter called "Faucet Type" as an integer type. The idea is the user will put the number to select the faucet. So if they put "1" they should get Standard- Faucet - Kohler, if they put "2" they will get Upgrade - Faucet - Grohe and "3" being the custom one. My question is how would the formula look for that to work in the "Standard - Faucet - Kohler" one and the other 2 types?
Gelöst! Gehe zur Lösung
Gelöst von Alfredo_Medina. Gehe zur Lösung
I would create a yes and no parameter with check box control. Once you have that setup, you can apply the formula
You could optimze this furthermore by avoiding the if condition :
Faucet Type = <Integer>should be enough a formula for a boolean parameter.
Faucet Type = 0
Faucet Type = 1
Faucet Type = 2
...and so on..
If conditions in Yes/No parameters do not need to be in this format: If (Faucet Type = 0, Yes, No). Nor in this other format: If (Faucet Type = 0, 1 < 2, 2 < 1)
No, simply... Faucet Type = 0
If the value of Faucet Type is 0, Revit sets that parameter to True, otherwise it is False.
I tried to do the same thing for the Family type parameters above. I need parameter "Faucet Type A" at the top to turn on when when Faucet Type = 1 is selected. The same for the other two. "Faucet Type = 2" then I need to get the Faucet Type B family parameter switched on. Thanks for help
To drive Family Type parameters with formulas, it is a little bit more involved. You need one family type parameter for each option plus one more family type parameter for the formula.
For example:
"Type Bronze" is family type parameter = "Bronze"
"Type Silver" is a family type parameter = "Silver"
"Type of Metal" is another family type parameter = (enter formula here)
I have a video in Youtube that has an example of this, if you want to see more: https://youtu.be/_8Md-Vrw8PU?si=RBjNQ9wcTKv4qnHY
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.