nested if statements and family type control

nested if statements and family type control

johnmcdermott
Explorer Explorer
787 Views
4 Replies
Message 1 of 5

nested if statements and family type control

johnmcdermott
Explorer
Explorer

Following up on a post from Alfred Molina where he explained how to use nested if statement to control family types with a formula, I have his family types created and I can use a dimension to change the family type, but for some reason the material/color associated with the types does not change. I attached his three families Family 1 a hexagon with material/color (type parameter), and height (instance parameter); Family 2 with the nested If statements, and Family 3 where the change in height should drive a family type/material/color change. The type changes with the dimensions, but the color doesn't. Any help from the Expert elite would be greatly appreciated.

0 Likes
Accepted solutions (1)
788 Views
4 Replies
Replies (4)
Message 2 of 5

ToanDN
Consultant
Consultant
Accepted solution

You didn't assign the label to the nested family in Family 2.  See revised file.

 

ToanDN_0-1658936825045.png

 

0 Likes
Message 3 of 5

johnmcdermott
Explorer
Explorer

Thanks ToanDN. I've been admiring the hep you, and the other experts, give in many forums for a long time. Truly appreciated.

I knew it was something simple I had missed. I just ran out of time to hunt for it.

Any improvements to this process to suggest?

I hope this post helps others understand the method with the family-type-driven-by-formula process.

0 Likes
Message 4 of 5

johnmcdermott
Explorer
Explorer

ToanDN, 

 

A follow up question...Alfred did not include the label step in his description of the method, can you walk us thru the steps and tell us why that's the key to making it work?

0 Likes
Message 5 of 5

ToanDN
Consultant
Consultant

@johnmcdermott wrote:

ToanDN, 

 

A follow up question...Alfred did not include the label step in his description of the method, can you walk us thru the steps and tell us why that's the key to making it work?


The 'hex type' label is the key to assign the correct Family Type to the nested component.  If not, all of the formulas below are calculating among themselves and disconnected from the actual component.

 

ToanDN_0-1658939229428.png

 

 

0 Likes