Issue with dynamic component
-
Hi,
I am learning how dynamic components work. I simply created a door with its frame and setup two options in order to set the width and the height of the component. The user can provide both options and the component is supposed to get resized according to the information provided. To do so, the component contains sub-components with attributes. These attributes are set with simple formulas depending on the main component in order to resize and move them inside the main component. Up to here, close to everything works excepted a sub-component which is re-sized the right way but also moved unexpectedly along the red axis whereas its X attribute is set to a constant value in order this sub-component not to move (see "dp_cdrh" component in joined file)
My questions are:
- Where am I wrong with dp_cdrh X attribute?
- As each sub-component axis is set at the same location as the axis of the main component containing them, when converting figures into components, outside of each component, I would expect the X and Z attributes not be 0 but another value. For example, if a sub-component is floating 2 meters over the floor along Z axis, I would expect Z attribute to be 200, not 0. Did I miss something about axis location?
Thanks.
-
Don't know what I missed. I recreated the dp_cdrh component and everything works fine, now... I attached the file if you want to check out.
Advertisement