Flex / increment array spacing with given range?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all. I've tried searching but it's a complex issue so maybe I'm not describing it well.
I'm trying to create / edit a flexible parametric family with an array of objects within it.
My goal is to have the array adjust the spacing via calculation / formula for a user-input overall length... but only within an acceptable range for the spacing dimension. If the calculated spacing goes above or below the acceptable range, I want the array to add to or subtract from the element count until the calculated spacing IS back in range.
Specifically, I'm making a louver panel for curtainwall infill. I'm OK with a fixed louver blade height / depth / angle, and I have that family nested into the panel family. Let's say that the overall blade height is 4". I need some overlap but not too much, so let's say that the acceptable blade spacing (BS) is 2" < BS < 3".
Now I want to create an array where the bottom of the bottom blade is aligned to one edge and the top of the top blade is aligned to the opposite edge. That means the spacing parameter has to flex in order to make the overall height of the array hit the target, which is easy enough to have Revit calculate for a given blade count (BC). Where my trouble lies is getting Revit to flex both the BC parameter and the BS parameter so that I always wind up with an integer BC, the BS parameter stays within the 2" to 3" acceptable range, and the top and bottom blades align to their respective edges.
Can anybody please point me in the right direction? Thank you.