Loading

Laser Cut Box Generator Script

by bvesperman, published

Laser Cut Box Generator Script by bvesperman Jan 29, 2013

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,

Recent Comments

view all
@bvesperman: have you seen boxdesigner.frag-den-spatz.de ?
change the exploded variable to true and then recompile the file. All the panels will be laying flat. You can then export the drawing as a DXF. That is how I cut it to a file.
Once I change all the dimensions etc, how do I save as dxf ready to cut on the laser?

More from DIY

view more

Liked By

view all

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

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.
Once I change all the dimensions etc, how do I save as dxf ready to cut on the laser?
change the exploded variable to true and then recompile the file. All the panels will be laying flat. You can then export the drawing as a DXF. That is how I cut it to a file.
I don't get this. how do you open the scad file .
Top