Laser Cut Box Generator Script
Description
I have found other simple box generators, boxmaker.rahulbotics.com/ but found I wanted something more. My script has logic for screw assembly and for advanced users, gives you the ability to cut holes and modify the box,
Instructions
Download the OpenSCAD file and change the following variable at the top of the script:
width - box width
length - box length
depth - box depth
tablength - the length of the tabs, can also be thought of as material thickness
tabwidth - the width of the tab
tablengthperiod - the number of tabs along the length dimentions of the box
tabwidthperiod - the number of tabs along the width dimentions of the box
tabdepthperiod - the number of tabs along the depth dimentions of the box
screwLength - the length of the fasening screw
screwDiameter - the diameter of the fasening screw
hexWidth - the width of the fasening hex nut
screwhexThickness - this is more of the length of the hex nut, not sure why i called it thickness
exploded - when set to true, will render the plates ready to be cut out, when false you can see the box assembled
explodedplateseperation - the seperation beween the plates when rendered in the exploded view
The values I have in the script work well for plywood that is 6 mm thick. I got the plywood from home depot. And I used 16mm long 3M screws.
There are sub function in the script (BottomPanel, TopPanel, etc) that represent each plate. In side each function is a basic Panel function, if you want to cut a circle or square out of plate just perform a difference method. The transformations are well setup so you can just use magic numbers in the BottomPanel function and it will translate well between exploded and assembled views.
width - box width
length - box length
depth - box depth
tablength - the length of the tabs, can also be thought of as material thickness
tabwidth - the width of the tab
tablengthperiod - the number of tabs along the length dimentions of the box
tabwidthperiod - the number of tabs along the width dimentions of the box
tabdepthperiod - the number of tabs along the depth dimentions of the box
screwLength - the length of the fasening screw
screwDiameter - the diameter of the fasening screw
hexWidth - the width of the fasening hex nut
screwhexThickness - this is more of the length of the hex nut, not sure why i called it thickness
exploded - when set to true, will render the plates ready to be cut out, when false you can see the box assembled
explodedplateseperation - the seperation beween the plates when rendered in the exploded view
The values I have in the script work well for plywood that is 6 mm thick. I got the plywood from home depot. And I used 16mm long 3M screws.
There are sub function in the script (BottomPanel, TopPanel, etc) that represent each plate. In side each function is a basic Panel function, if you want to cut a circle or square out of plate just perform a difference method. The transformations are well setup so you can just use magic numbers in the BottomPanel function and it will translate well between exploded and assembled views.
License
Laser Cut Box Generator Script by bvesperman is licensed under the Attribution - Creative Commons license.

You must be logged in to post a comment.