Dynamic Component, sub-components shift in relative position
-
I have a simple Dynamic Component built of only three sub-components. I am trying to resize it with a drop-down list of differing widths with two of the three dimensions constrained. When I select a different width setting the sub-components shift relative position and their over-all size is bigger than it should be. Any thoughts?
-
Sure, could you upload it for us to look at?
Sub components base thie position on the position of their parent's origin. So keep that in mind while making DC's.
But if you upload it here, we'll take a look at what you have.
Chris
-
Thanks for getting to me so quickly, here is the file.
I have made and remade it several times and always get the same result. -
This is a pretty easy fix, just set x, y, z to proper values.
See attached.
By setting the X, Y of the cross bar's axis to the correct location, (e.g. 0.75", 0.75"), the cross bar stays in place. Then the farther away bar just needs it's X, Y, Z, coordinates set to equal the length of the component, and tada, the part works fine. Then I just added some bulletproofing (e.g. set LenZ_Part = LenZ_FatherComp), so that way scaling wouldn't mess it up. And turn the scaling handles off, since you won't be using those (I hope not, this would be a bit more complicated if you needed to include dynamic scaling).
-
Thanks Markozeta for your replies, and quick too. I would have responded sooner, but had a time of it logging on. But the info helped and I am on my way.
Thanks, Brian
Advertisement