Parametric Box Generator
by clifford, published
Use This Project
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
I wrote a script to generate lasercut boxes. The script reads a config file with the box dimensions and generates a DXF file and an OpenSCAD model. We use the script for all types of cases here at metalab. The example file attached is the case of our electronic door lock system.
The script can be found here:
You might need to install SPL (the scripting language I've used for the script) before you can use the script:
Create A *.box file with the box dimensionps:
w = 180
l = 180
h = 100
t = 5
door = 1
E.g. this file is called "mycase.box". Call "boxgen.spl" with "mycase" as argument:
splrun boxgen.spl mycase
This script then generates a "mycase.dxf" and "mycase.scad" file. Use a dxf editor (such as "qcad") to modify the box to fit your needs. Usually you want to add holes for cables, user interface elements and such.
Open "mycase.scad" in OpenSCAD to preview the box. You might want to use the "Thrown together" rendering mode (F12) to speed up things and avoid rendering glitches with the OpenCSG at the highly concave edges of the boxes.
Parametric Box Generator by clifford is licensed under the Public Domain license.
What does this mean?
- Remixing or Changing this Thing is allowed.
- Commercial use is allowed.
Show Some Love
Say thanks by giving clifford a tip and help them continue to share amazing Things with the Thingiverse community.Tip Designer
We're sure clifford would love to see what you've printed. Please document your print and share a Make with the community.
To post a Make simply visit this Thing again and click I Made One to start uploading your photo. It’s even easier to post a Make via the Thingiverse Mobile app (available via Google Play and Apple App Store).