Forums
Forums >> Revit Structure >> Technical Support >> Centering an Array Parameter within a Family (Wall Based)
|
|
active
Joined: Tue, Apr 24, 2012
11 Posts No Rating |
I am trying to create a countertop with an array of sinks that grows as the counter is stretched. I have created the array parameter and basically want to center this parameter within the counter, no matter how long/short it is. If I create an “End Distance” parameter and try to use it on the ends of the counter, it stretches the distance between the sinks instead of centering the entire parameter.
Other things to note, we need the distance between the sinks to maintain editable, in addition to the number of sinks…so I know that is a lot of variables to manage and might not be possible.
Any thoughts?
|
This user is offline |
|
 |
|
active

Joined: Thu, May 28, 2009
829 Posts
 |
Make two arrays -- one going left, and one going right from the centerline.
Give yourself a [total length] parameter, and make the [array number] an integer value for the sinks derived by the equation ([total width] / 4' /2 -1) or whatever spacing you want for the sinks.
Hosted families always seem to array better, too. But maybe that's superstition.
Edited on: Fri, May 4, 2012 at 3:26:37 PM
|
This user is offline |
|
 |
active
Joined: Wed, Oct 7, 2009
654 Posts
 |
Sounds like the exact same problem I ran into a while ago. I have a parameter for the table width, a parameter that controls the left edge of the left-most sink, and a parameter to calculate the total width of the sinks (this is calculated from the width and number of sinks). The parameter for the left edge has a formula like this:
((Table Width / 2) - (Sink Width / 2)).
It's a little more complicated than absolutely necessary, but it does work and it allowed me to set it up to either automatically center the sinks, or let me manually control the placement.
|
This user is offline |
|
 |
active
Joined: Tue, Apr 24, 2012
11 Posts No Rating |
Thanks all, I ended up solving it myself a while after I posted and it seems we all have the same solution with different equations.
The one I used for the "end value" (aka, distance from wall to first sink) was:
(Length of Counter - ((Number of Sinks - 1) * Distance Between Sinks)) / 2
along with a Number of Sinks parameter on the array itself and a parameter to edit the distance between.
Using the Length of Counter that you mentioned seemed to wrap it all up.
Thanks for the help! Seems like way too much math for a simple task!
|
This user is offline |
|
 |
 |
Similar Threads |
Array Parameter within Family |
Revit Building >> Technical Support
|
Thu, Aug 7, 2014 at 8:25:10 AM
|
4
|
Centering a parametric array in a family - RAC 2009 |
Revit Building >> Technical Support
|
Thu, Jul 16, 2009 at 12:10:05 PM
|
0
|
Array Distance Parameter |
General Discussion >> Revit Project Management
|
Thu, Apr 11, 2019 at 8:53:58 AM
|
2
|
Instance Based Parametric Array |
Revit Systems >> Technical Support
|
Thu, Oct 14, 2010 at 10:41:31 PM
|
1
|
changing type of a family from wall based to face based |
General Discussion >> Revit Project Management
|
Wed, Mar 3, 2010 at 8:24:38 PM
|
7
|
 |
|
Site Stats
Members: | 2099198 | Objects: | 23170 | Forum Posts: | 152292 | Job Listings: | 3 |
|