Generic case (box and lid)

by davidmpye, published

Generic case (box and lid) by davidmpye Oct 11, 2012
1 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps



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


Thing Statistics

11055Views 5263Downloads Found in Hobby


This is a generic 2 part case, consisting of a box and lid.

It's all parametric, and is designed to be held together with screws.

The idea is that you can customise it to the sizes and wall thickness you need for housing your project, and use OpenSCAD to 'cut' the holes in it you need for openings, and to add 'standoffs' etc for mounting PCBs inside!

Hopefully it will be useful to people!


This is not likely to be useful printed as is without customising it for your project.

You will need to edit the first 3 lines of the .SCAD file to point to the file path on your local machine for where you have stored the aforementioned SCAD files. The roundedCornersCube.scad is available from the thing: http://www.thingiverse.com/thing:8812, of which my object is a derivative. The other two files are attached to this project - it is made by Nophead, and I got it from the mendel90 source code.


roundedCornersCube(generate_box, generate_lid);


roundedCornersCube(true, false) will generate you the box.
roundedCornersCube(false, true) will generate you the lid.

true, true will generate you both the box and matching lid.

Inside the main function, you will find a list of parameters:

//Case details (these are *outer* diameters of the case 
sx = 95;            //X dimension
sy = 45;            //Y dimension
sz = 30;            //Z dimension
r = 2.5;            //The radius of the curves of the box walls.
wall_thickness = 1.5;//Thickness of the walls of the box (and lid)

//Screw hole details
screw_hole_dia = 2;     //Diameter of the screws you want to use
screw_hole_depth = 20;  //Depth of the screw hole

screw_head_dia = 5;     //Diameter of the screw head (for the recess)
screw_head_depth = 1.25;    //Depth of the recess to hold the screw head

Customise these to specify the box you want to create. Enjoy!
Now fixed the thing so the lid has a lip on, which supports the walls and stops inward flexing.

Any bugfixes etc, please contact me so I can improve this thing!


More from Hobby

view more

All Apps

3D Print your file with 3D Hubs, the world’s largest online marketplace for 3D printing services.

App Info Launch App

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App


It's not missing - it just isn't included with this thing as I didn't write it.

If you look at the 'things that this object is remixed from', you'll see roundedCornersCube.scad there.



Hi, thanks for sharing this. The scad file is missing the roundCornersCube.scad.

Comments deleted.

Thank you!
I don't think I'll ever have to order a project box again with the ability to easily modify this box's parameters.
You just saved me a ton of time.