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: 

How can I select a nested family type by a parameter

12 ANTWORTEN 12
GELÖST
Antworten
Nachricht 1 von 13
MichaelWolff
4733 Aufrufe, 12 Antworten

How can I select a nested family type by a parameter

In a door family, I have a numerical parameter that contains a number that determines whether the door handles are standard handle bars, knobs or public building type bars or combinations of any. The number 10 would select a standard handle on the inside and exterior sides of the leaf and leave "DD" in a shared parameter that is used in our door schedules. To have this same parameter also choose the family type of the door handles, I tried to make another if(condition,this,that) formula but ran into a 'Inconsistent units' error.

How can that be fixed?

12 ANTWORTEN 12
Nachricht 2 von 13
Ilic.Andrej
als Antwort auf: MichaelWolff

You re gonna have to forget about the family/type parameter. Associate the nested family parameters with the host family parameters. Then, you can play with the formulas. Those can be put in the nested family or host family (depending on your strategy). The idea is to have yes/no parameters which constrain the geometry visibility while having formulas like: 

 

code.Drücker=10

Based on what I understood while reading your post and observing the family that you created, I think it was a mistake to create code.Drücker as a number parameter. It should be integer.

 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Nachricht 3 von 13
FAIR59
als Antwort auf: MichaelWolff

You can make the nested-family dependent on the code-drucker parameter.

  • In the Griffe-family, make the reference plane through the centre of the handle [Defines Origin]

RefPlane.PNG

In the door family:

  • Make the code-drucker type of parameter: Integer .
  • Make as many parameters (type of parameter : Family<Doors>) as there are choices. {  Griffe_1, Griffe_2 etc.}
  • Label the nested_TurGriff family { Griffe_Formula }
  • Make formula to choose nested family, using if- statements. (see picture)

formula.PNG 

Nachricht 4 von 13
MichaelWolff
als Antwort auf: FAIR59

Brilliant this is exactly what I wanted. I'd love to click this as 'Accept as answer' but that button does not seem to be around. Just after posting this the button in question showed up - seemingly you need to be logged in first ;-).

Nachricht 5 von 13
Anonymous
als Antwort auf: FAIR59

You are a genius! I've been trying to change family for the whole day before your post.

Nachricht 6 von 13
snehil_jalanMP5D2
als Antwort auf: FAIR59

Thanks for the solution. I was facing the same issue. I need to ask further if the same thing can be possible without the parameters you made for every type and instead use a formula directly to call specific type of nested family.

P.S. I have similar family with 12 types where the names of types are similar to that in parent family.

Nachricht 7 von 13
sdewittHX66A
als Antwort auf: MichaelWolff

sdewittHX66A_0-1698935786718.png

I have the same question as snehil.  is it possible for me to right a formula saying something similar to...
 if (DECK EXTERIOR, <family type(x)>, <family type(y)>)
the goal is to "hard code" the family type selection based on a few yes/no parameters...

Nachricht 8 von 13
RSomppi
als Antwort auf: sdewittHX66A

It's possible but gets quite complicated very quickly.

Nachricht 9 von 13
sdewittHX66A
als Antwort auf: RSomppi

any examples you can share

Nachricht 10 von 13
RSomppi
als Antwort auf: MichaelWolff

Even if I could share my families, they probably wouldn't help much. There are a number of ways to accomplish it. I got the information I needed from a couple of sources online. Alfredo Medina has a couple of good articals.

Nachricht 11 von 13
dtiemeyer
als Antwort auf: MichaelWolff

Is there a way to read the value of the selected nested family and produce a result?  And if so, what is the correct syntax? For example, related to post 3 above:

If (Griffe_1<Doors> = a_Turgriffe_r172 : KB, "X", "Y")

My other CAD is a Cadillac and I like to Revit to the Max!
Nachricht 12 von 13
MichaelWolff
als Antwort auf: MichaelWolff

@dtiemeyer I am afraid your approach is to Revit like comparing two text parameters. The whole value selects entities, families, text values thing is run by a number determining the outcome. Btw. the number parameter does not need to be an integer - it just looks prettier not having decimals.

Nachricht 13 von 13
dtiemeyer
als Antwort auf: MichaelWolff

Thanks @MichaelWolff , that's what I was afraid of, but not surprised.

My other CAD is a Cadillac and I like to Revit to the Max!

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