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: 

Family Creation

9 ANTWORTEN 9
GELÖST
Antworten
Nachricht 1 von 10
mattpick10
784 Aufrufe, 9 Antworten

Family Creation

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

Beschriftungen (1)
9 ANTWORTEN 9
Nachricht 2 von 10
barthbradley
als Antwort auf: mattpick10

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.  

 

Nachricht 3 von 10
bin
Advisor
als Antwort auf: mattpick10

bin_0-1594524175752.png

Nothing to change in the model.

Nachricht 4 von 10
mattpick10
als Antwort auf: barthbradley

Barth

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

Thanks

Matthew

Nachricht 5 von 10
barthbradley
als Antwort auf: mattpick10

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. 

Nachricht 6 von 10
mattpick10
als Antwort auf: barthbradley

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

Nachricht 7 von 10
barthbradley
als Antwort auf: mattpick10

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

 

You're most welcome, @mattpick10 . 

 

Cheers! 

Nachricht 8 von 10
bin
Advisor
als Antwort auf: mattpick10

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

Nachricht 9 von 10
mattpick10
als Antwort auf: bin

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? 

Nachricht 10 von 10
bin
Advisor
als Antwort auf: mattpick10

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

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