Dynamic Component - Position changing relative to parent size

wardrobe dynamic.skp (246.7 KB)

I have made a dynamic wardrobe component.
I have made inside shelves and hanger samples so i can reuse it in other doors. But when given the position X (as 1.95cm) it changes when i change the wardrobe size.
If I make the shelf position X as =1.95, then I’m not able to reuse the component later in the design.

I’ve given the PositionX of the shelf at 1.95 when Wardrobe width is 150cm. But when the wardrobe size is changed to 300cm the PositionX changes to 3.9.

How do I stop the child component changing position in relative to the parent component’s size.

Thank you

You can attach formula to a dropdown choice menu, so you could place, copy and place and select different bays for the shelf / shelf unit

I did it with some of X of the double shelf, formula copied from “wdpartition” and renewed reference to door calculator

you can add an option to place anywhere on x
=current(“x”)*2.54
then place with movetool

wardrobe dynamic.skp (238.0 KB)

1 Like

Thank you!

  1. Multiplying by 2.54 is for the inch to mm conversion ?~
  2. Can I lock the attributes and codes of the dynamic component so I don’t edit it by mistake and mess it up? I’ve seen that in some paid components where the attributes are hidden. But i just would like to prevent the accidental edits