Family Creation

Family Creation

mattpick10
Advocate Advocate
1,373 Views
9 Replies
Message 1 of 10

Family Creation

mattpick10
Advocate
Advocate

Not very good with formulas so thought I would post to see if anyone can help
The below image shows a filter panel, spacer panel and an end panel. I want to control the number of filters according to the canopy section length.
For example if Canopy Section Length = 2000mm i want the family to insert 3 filters which are each 500mm long and would require a spacer panel between each filter ( Spacer Panel = 75mm ) and the rest taken up by the end panels which would then be 175mm each. However if canopy section length is 2500mm then i would want 4 filters and 3 spacer panels which would be a total of 2225mm and the rest taken up by the end panels which would then be 137.5mm. Any ideas how i can control this.
Thanks in advance
Matt

0 Likes
Accepted solutions (4)
1,374 Views
9 Replies
Replies (9)
Message 2 of 10

barthbradley
Consultant
Consultant

You  have a lot of variables here. Which ones are user decided values and which ones are fixed values?  Here's one version that has the Spacer Panels/Length, including end spacers, all driven by the Number and Length of Baffle Filters you decide upon.  It's going to require other control formulas to prevent it from breaking, but take a look at the Family  and see if it's close to what you are thinking.  All the parameters that the Arrays are using are Grouped under Constraints.  

 

0 Likes
Message 3 of 10

bin
Advisor
Advisor

bin_0-1594524175752.png

Nothing to change in the model.

0 Likes
Message 4 of 10

mattpick10
Advocate
Advocate

Barth

I can't open the attachment any chance you could resend in 2019

Thanks

Matthew

0 Likes
Message 5 of 10

barthbradley
Consultant
Consultant
Accepted solution

This one's a little better one than the last one. I've included some parameters to prevent it from breaking, specifically at conditions where you only have one filter.  Note that an Array can't have less than two (2).  This Family can have one (1) Filter.  Again the Number of Filters is user-decided. Spacers placement and length are driven by the Number and Length of the Filter entered by the user.  

 

P.S. If you break it, you own it.  

 

Enjoy. 

0 Likes
Message 6 of 10

mattpick10
Advocate
Advocate
Accepted solution

Barth

That is a masterpiece 

It would of took me months to do that

Thanks ever so much for spending the time its much appreciated.

Regards

Matthew

Message 7 of 10

barthbradley
Consultant
Consultant
Accepted solution

I think that's worth an extra credit.  Wouldn't you agree?  

 

You're most welcome, @mattpick10 . 

 

Cheers! 

Message 8 of 10

bin
Advisor
Advisor
Accepted solution

Glad you solved your problems. Have you checked the image I posted and see how close you were?

0 Likes
Message 9 of 10

mattpick10
Advocate
Advocate

Yes it was just the if statements that I am not very good with. Still not sure how it all works especially the fact that you can have one filter. I presume you have to nest a single filter into the family and then use the if statements to hide or reveal? 

0 Likes
Message 10 of 10

bin
Advisor
Advisor

Correct, just check @barthbradley 's family and you will find out.

0 Likes