Anyone have idea for corrugation box layouts

Hello i am new here. Is there any way we can create automatic multiple box with different dimentions. Means 4 box on the top, 5 box in middle and 4 in bottom or some time 4 in the top 5 in the middle and 1 in the bottom? Everybox should be attached with each other whatever the dimention i gave. Need to create corrugation box layouts.