"Centered" Repeating Sub-Components?
-
Hello:
I'm trying to figure out the commands/formula for "centering" the position of repeating subcomponents, along one axis of dynamic component. I want the total number of sub-components to be equally spaced from each end of the overall length of the component, no matter what the length is. I am assuming the repeating subcomponent should not be constrained (position-wise) along that axis?
Does my explanation make sense?
Any help would be much appreciated!
-
I don't know if I really understand your request, but here is my answer
Distrib.skp
There is a component in a component, you choose the number of sub component and you can stretch the mastercomponent along the red axes. The sub components will be placed at
X = Copy * (Master!LenX - LenX)/(Copies + 1)
You must fix the LenX of the sub component to avoid to transform them when you resize the master component. -
@unknownuser said:
I don't know if I really understand your request, but here is my answer
[attachment=0:6mcjm8ou]<!-- ia0 -->Distrib.skp<!-- ia0 -->[/attachment:6mcjm8ou]
There is a component in a component, you choose the number of sub component and you can stretch the mastercomponent along the red axes. The sub components will be placed at
X = Copy * (Master!LenX - LenX)/(Copies + 1)
You must fix the LenX of the sub component to avoid to transform them when you resize the master component.I'm trying to do something similar to some of the typical fence direct components (DC's) that are floating around.
I have LenX of the subcomponent fixed, and the number of them is being determined by dividing the Master!LenX/LenX. Additionally, I'm trying to use the 'INT' math function to round-down the number of repeating SC's, to keep the total length of them to less than Master!LenX.
LenX is also the "spacing", as the sub-components are touching each other, so there is actually no space between them.
Thanks.
Advertisement