Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Boolean operator on a Family Type parameter

5 ANTWORTEN 5
GELÖST
Antworten
Nachricht 1 von 6
Mbruno-JDB
411 Aufrufe, 5 Antworten

Boolean operator on a Family Type parameter

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.

Mbruno4XBGX_0-1696876420585.png

The easy way would be to have the user manually change both parameters, but that will lead to errors.

 

5 ANTWORTEN 5
Nachricht 2 von 6
gfwilliams
als Antwort auf: Mbruno-JDB

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.

Nachricht 3 von 6
Mbruno-JDB
als Antwort auf: gfwilliams

Yeah, I've had probably with that in the past, but I've been able to work around that with () or []. I think these family names are nested in too many other families to make changes to them now.
Nachricht 4 von 6
robert2JCCH
als Antwort auf: Mbruno-JDB

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.

Nachricht 5 von 6
ToanDN
als Antwort auf: Mbruno-JDB

Why don't you make the mounting height a type parameter so you can assign different heights to different types?

Nachricht 6 von 6
Mbruno-JDB
als Antwort auf: ToanDN

You're right @ToanDN ! Types would be the easier way to go.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report