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 a nested <Family Type...> be used to drive a conditional statements?

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
jjenkins2
407 Aufrufe, 4 Antworten

How can a nested <Family Type...> be used to drive a conditional statements?

I'm not sure if this is just a syntax error, or if its a "Revit can't do that" issue.

I have a family with nested families that are instance parameters. I would like to make a conditional statement that in essence says this:

If (Family is Type 1) then 3", else 0"

Revit seems to balk at every construct I have come up with to say family/type and I can't find any example with a correct syntax to use as an example.

Can this be done? 

And if so, how is the condition stated?

 

Thanks ever so much in advance.

Jim

4 ANTWORTEN 4
Nachricht 2 von 5
AGGilliam
als Antwort auf: jjenkins2

In order to use family types in a formula you need to have a family type parameter to use in the statement. For example:

Parameters: 

  • Family 1: Corner Trim
  • Family 2: Corner Trim

Statement:

if(Family 1 = Family 2, 3", 0")

Nachricht 3 von 5
barthbradley
als Antwort auf: jjenkins2

Are you using Family Type Parameters to control which Nested Family Type is pulled into Family?  

 

If so, this screenshot make sense to you?  "TYPE" is what controls which Nested Family is used in the Family.  "TYPE1" and "TYPE2" are basically just references and, in this example, reference the two Nested Families available to the "TYPE" Parameter. They are needed for the "Length" Parameter Formula to work.  

 

Family Type Parameter.png

Nachricht 4 von 5
jjenkins2
als Antwort auf: AGGilliam

OK I see how it works, there apparently is no way of directly saying "if ((this parameter is set to this family type), then, else)" so we must make a testing family parameter and compare the two parameter values like this "if ((user selectable parameter family type = test parameter family type), then, else)". The testing parameter can be type and the user selectable parameter instance. 

Nachricht 5 von 5
jjenkins2
als Antwort auf: barthbradley

OK I see how it works, there apparently is no way of directly saying "if ((this parameter is set to this family type), then, else)" so we must make a testing family parameter and compare the two parameter values like this "if ((user selectable parameter family type = test parameter family type), then, else)". The testing parameter can be type and the user selectable parameter instance. 

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