Instance Integer parameter for Family

Instance Integer parameter for Family

vroofvbsc
Explorer Explorer
1,377 Views
6 Replies
Message 1 of 7

Instance Integer parameter for Family

vroofvbsc
Explorer
Explorer

 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? 

0 Likes
Accepted solutions (1)
1,378 Views
6 Replies
Replies (6)
Message 2 of 7

syman2000
Mentor
Mentor

I would create a yes and no parameter with check box control. Once you have that setup, you can apply the formula

 

syman2000_0-1695361714805.png

 

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes
Message 3 of 7

MetalFingerz
Advocate
Advocate

You could optimze this furthermore by avoiding the if condition :

Faucet Type = <Integer>

should be enough a formula for a boolean parameter.

Message 4 of 7

Alfredo_Medina
Mentor
Mentor
Accepted solution

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. 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Message 5 of 7

vroofvbsc
Explorer
Explorer

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 

0 Likes
Message 6 of 7

Alfredo_Medina
Mentor
Mentor

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


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 7 of 7

vroofvbsc
Explorer
Explorer
Great video! Thank you, it worked
0 Likes