Creating an array of extruded rectangles that is going to make up a warehouse

Hi,

I am trying to make an array of warehouses. I have to have wall thicknesses accounted for so it is realistic in plan and section. I want all of the warehouses to have the same area but I want to be able to control this area via an x or y number slider. Attached is an image of what I am trying to achieve but obviously I want to extrude this too.

I am not too experienced in Grasshopper and I know it shouldn’t take as long as it has to solve this problem. Is anyone able to point me in the right direction?

Thanks in advance

Something like this: warehouse_ME.gh (13.5 KB)

Yes, this is perfect!

I couldn’t figure out the mathematics to ensure that the wall and floor thicknesses were not affected by the dimension changes of the warehouses.

Thank you so much!