Problem with adjusting copies with respect to height of a wardrobe cabinet in Dynamic Components

hey there guys!

I’m trying to create a dynamic component of a wardrobe with shelves. So everything was going smoothly and suddenly i stopped at creating copies of shelves with respect to height, for suppose i’m creating a wardrobe of 2400 mm height and number of shelves i’m using is 5 with 350 mm spacing. so for a wardrobe of 2550 mm height i still want 5 shelves but 6th shelves is coming at the top.

what should i do to make them match with respect to height?? Please give me an explanation on how i can solve this!!

use floor(lenz/spacing)?

please load file for specific answer

1 Like