Protective case with tray: print a hard case with hinges
A protective case with a removable tray
A protective case, also called a hard case or equipment case, is the clamshell box that carries tools, instruments or small parts: rounded bottom half and lid, two hinges at the back, two latches at the front, a tray inside. This generator makes one to your measurements as five print plates, each small enough for an 18 cm bed. Start from the example gallery, for instance the tool case with tray or the slim pen case, or open the generator right away.
Status: ported and adapted, not test-printed
- Nothing has been test-printed. Tests and PrusaSlicer slices checked the geometry; nobody has closed a printed case yet.
- Hinge and latch are the riskiest parts. Their clearances come from the original and are untested; a small test print is described below.
- Ported and adapted. The case follows an MIT-licensed OpenSCAD design; “Origin and license” lists every change.
- Not sealed. The cord groove is there, its effect is untested.
How the generator works
The generator runs in your browser. Nothing is uploaded, and your design lives in the link that “Share” gives you. You set size, tray and hardware, look at the 3D view, choose a print plate under “Show” and download it as STL or 3MF.
“Show” has seven values. The two previews show the assembled case, open (up to 100°) and closed, for looking only. The five print plates are what you print: bottom half, lid, tray, hinges and latches, weave panel. On the hinges and latches plate, “Parts on the plate” switches from the full set (two of each) to a single part, for example to reprint one lever.
Size, walls and corners
The “Case” group holds the main measurements:
- “Length”: 100–170 mm, default 170 mm, outside length without hinges and latches.
- “Depth”: 60–140 mm, default 110 mm, from the front to the back wall.
- “Bottom half height”: 40–100 mm, default 60 mm, without feet.
- “Lid height”: 30–65 mm, default 36 mm.
- “Corner radius”: 3–25 mm, default 10 mm; it rounds the vertical corners and the bottom and top edges.
- “Wall thickness”: 2–6 mm, default 4 mm, and “Inner corner radius”: 1–15 mm, default 4 mm.
The default case is 170 × 110 × 96 mm outside and 162 × 102 × 88 mm inside (the editor shows the inside for your settings). With thin walls or low halves the rounded edges shrink so hinges and latches sit on flat wall; you get a note.
Tray, compartments and finger notches
“Tray” switches the removable tray on or off. It rests on a ledge in the bottom half, so you can lift it out and reach the space below.
- “Tray height”: 10–90 mm, default 25 mm; the ledge sits that far below the rim.
- “Tray wall”: 1.2–4 mm, default 2 mm, and “Tray clearance”: 0.2–1 mm, default 0.4 mm, the gap to the walls. The default tray is 161.2 × 101.2 mm.
- “Dividers across”: 0–8 and “Dividers along”: 0–4, default 0 each, which is the original’s single open tray. With 2 across you get three compartments of about 51 × 97 mm; the editor shows the size.
- “Finger notch width”: 0–80 mm, default 50 mm, and “Finger notch depth”: 0–40 mm, default 10 mm, to lift the tray out.
Below the default tray 31 mm remain. Without a tray, as in the battery case, the whole bottom half is free. For compartments in boxes you already own, see the storage box inserts.
Seal groove and feet
“Seal groove width” (0–2 mm, default 1 mm) and “Seal groove depth” (0.4–2 mm, default 1 mm) cut a groove into the middle of the bottom half’s rim for a sealing cord; the original suggests 1 mm silicone cord. Width 0 means no groove.
“Feet” is on by default: six feet printed under the bottom half, as in the original. “Foot diameter” (8–20 mm, default 14 mm), “Foot height” (2.5–8 mm, default 5 mm) and “Foot inset” (10–40 mm, default 25 mm) set them. Each foot widens toward the case and has a recess at the ground end, 10 mm wide for the default feet, for a self-adhesive rubber pad. With feet the closed case is 5 mm taller.
Hinges
Two barrel hinges sit at a third and two thirds of the length, each with three knuckles on an M3 pin. Half A (two outer knuckles) is screwed to the bottom half, half B (middle knuckle) to the lid.
- “Hinge barrel diameter”: 6–10 mm, default 8 mm; “Hinge length”: 12–30 mm, default 20 mm.
- “Hinge leaf length”: 10–30 mm, default 20 mm; “Hinge leaf thickness”: 1.6–4 mm, default 2.5 mm.
- “Pin diameter”: 2–4 mm, default 3 mm (the hole is 0.3 mm larger); “Screw holes”: 2.5–4 mm, default 3 mm.
- “Hinge clearance”: 0.15–0.6 mm, default 0.3 mm, between the knuckles and toward the wall.
If your test hinge binds, raise “Hinge clearance”; if it rattles, lower it.
Latches
Each of the two latches has a base and a lever. The base is screwed to the front of the bottom half with two screws; it has a post that carries a catch bar at the rim. The lever is screwed to the lid with one screw. Its arm hangs down in front of the base and springs, and the lip at its end grips under the catch bar. Pull the grip away from the case to open; closing the lid, the lip’s 45° lead-in rides over the bar.
The “Latches” group:
- “Latch width”: 20–40 mm, default 36 mm; “Latch plate height”: 14–30 mm, default 24 mm.
- “Base plate thickness”: 2–4 mm, default 3 mm; “Hook post height”: 6–14 mm, default 10 mm; “Hook post width”: 2–5 mm, default 3 mm.
- “Lever arm length”: 20–40 mm, default 30 mm; “Lever thickness”: 1.6–3.5 mm, default 2.5 mm.
- “Grip height”: 8–20 mm, default 16 mm; “Grip depth”: 6–18 mm, default 14 mm.
A thin arm flexes easily but breaks sooner; untested. On lids lower than 35 mm the editor shortens plate, post or leaf and tells you; the multimeter case sets shorter values itself.
Hardware you need
For the default case:
| Part | Number | Size |
|---|---|---|
| Hinge pin | 2 | M3 × 25 mm screw |
| Hinge screws | 8 | M3 × 10 mm |
| Latch base screws | 4 | M3 × 10 mm |
| Lever screws | 2 | M3 × 10 mm |
| Nuts | 16 | M3 |
| Sealing cord (optional) | 1 | about 1 mm |
| Rubber pad (optional) | 6 | self-adhesive, about 10 mm |
The editor shows the lengths for your settings. Next to the knuckles use low button-head screws: pan heads on half A touch half B’s knuckle by about 0.15 mm.
The nuts of the hinge and latch-base screws sit inside the bottom half. A standard M3 nut is 2.4 mm thick and the tray clearance at most 1 mm, so the original’s tray hits them. Our tray has a slot in its outer wall at each nut: open at the bottom, a nut’s width plus 0.5 mm per side, deep enough for the nut and the end of the suggested screw, closed toward the compartment. The ledge has a gap where a nut would sit on it, so the tray goes in and out with all hardware mounted.
Weave panel and colors
“Weave panel” adds a basket-weave panel to glue on the lid top; margin, thickness, strip width and gap, frame width and clearance are adjustable (see the weave lid example). The strips run on the lower level and rise only where they cross.
There are four color slots: “Case” (halves and weave frame), “Tray and blue strips”, “Hinges and latches”, and “White strips”. Each plate takes the color of its slot, so one extruder is enough: change the filament between plates. Only the weave plate has three colors; use a multi-color download for a multi-material printer, or the single-color STL or 3MF.
Printing: orientation, supports and print numbers
- Bottom half: upright on its feet, open side up. The floor needs supports on the build plate only (+22.8 g). Without feet it prints on its floor without supports.
- Lid: top face down on the bed, rim up; the rounded edge ends in a 50° chamfer.
- Tray: upright on its floor; the nut slots need no supports.
- Hinges and latches: hinge halves stand on the leaf edge with the knuckle up, the bases lie wall side down, the levers lie on their side. All slice without supports.
- Weave panel: flat.
Numbers from PrusaSlicer for the Prusa MINI, 0.20 mm SPEED profile, Prusament PLA, default case (tray with two dividers for the tray plate):
| Plate | Size | Filament | Time |
|---|---|---|---|
| Bottom half | 170 × 110 × 65 mm | 133.48 g (+22.77 g supports) | 4 h 16 min |
| Lid | 170 × 110 × 36 mm | 94.76 g | 2 h 53 min |
| Tray | 161 × 101 × 25 mm | 74.69 g | 2 h 1 min |
| Hinges and latches | 161 × 48 × 36 mm | 29.26 g | 1 h 37 min |
| Weave panel | 146 × 86 × 3 mm | 28.85 g | 2 h 34 min |
Case, tray and hardware together are about 332 g and a little under 11 hours, plus the supports; real times depend on your printer. Print hinges and levers with more perimeters than usual. We tested neither PLA nor PETG for the lever.
Test print first
The default case takes a day, so test small:
- Print the hinges and latches plate. Push an M3 screw through one hinge pair and check that the knuckles move without fusing.
- Print a small case: open the bit case, switch “Tray” off, and print the plates for the bottom half, the lid and the hinges and latches. Switch “Feet” off to skip the supports.
- Fit one hinge and one latch. The lid should swing freely, the lever should snap over the bar, hold the lid and release when you pull the grip, and the arm should survive flexing.
Origin and license
The case is ported and adapted from Protective Storage Box, cad/protective_storage_box.scad in slahiri/open-cad, MIT license, © 2026 slahiri. We rewrote it in TypeScript for the browser and compared every part with the OpenSCAD original in volume (within 1 %) and bounding box, with our fixes and adaptations applied on the OpenSCAD side.
Ported: the shape, sizes and parameters of all parts, including the tray’s ledge and finger notches. Ported and adapted: bottom half, lid, feet, tray, hinge halves A and B, latch base and lever, weave panel.
We fixed these defects of the original, where its parts do not fit together:
- the gasket groove removed the whole rim top, so it is now centered in the wall;
- screw holes in the halves missed the hardware’s screws and were moved onto them;
- the pad recess in the feet was enclosed under the floor and now sits at the ground end;
- the hinge knuckles cut into both walls, so the axis moved off the wall;
- the hinge leaves overlapped and blocked the lid, so they now end at the rim and give way to the other knuckle;
- the catch bar sat inside the wall and now stands out of the plate;
- the lever collided with the hook post and the catch bar, so its arm now hangs in front of the base.
Adapted for printing: a 50° chamfer under the rounded edge and the tray ledge, teardrop-shaped holes, hinges printed on the leaf edge with a 55° gusset, a springy lever arm with a lead-in on its lip, weave strips without free bridges. Slots in the tray wall and gaps in the ledge make room for the nuts. We added optional tray dividers and single-piece reprints, and left out the split into three pieces.
Hinge and latch are not test-printed; please print one hinge and one latch first. All sources are on the licenses page.
Open the generator, browse the examples, or see the rugged box for a boxy case with toggle latches, the hinged box for small boxes with a lid and the box latch generator for other latches.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Case | |||
| Length | 170 mm | 100 – 170 mm | Outside length of the closed case, from left to right (without latches and hinges). |
| Depth | 110 mm | 60 – 140 mm | Outside depth from the latches at the front to the hinges at the back. |
| Bottom half height | 60 mm | 40 – 100 mm | Height of the bottom half from the bottom face to the rim, without the feet. |
| Lid height | 36 mm | 30 – 65 mm | Height of the lid from the rim to its top face. |
| Corner radius | 10 mm | 3 – 25 mm | Rounds the vertical corners and the bottom and top edges. The edges get smaller automatically when the walls are thin. |
| Wall thickness | 4 mm | 2 – 6 mm | Thickness of the walls, the floor and the lid top. |
| Inner corner radius | 4 mm | 1 – 15 mm | Corner radius of the inside of both halves and of the tray. |
| Tray | |||
| Tray height | 25 mm | 10 – 90 mm | Outside height of the tray; the ledge sits this far below the rim. |
| Tray wall | 2 mm | 1.2 – 4 mm | Thickness of the tray walls, floor and dividers. |
| Tray clearance | 0.4 mm | 0.2 – 1 mm | Gap between the tray and the walls of the bottom half on every side. |
| Dividers across | 0 | 0 – 8 | Walls across the tray, splitting it along the length (0 = one open tray as in the original). |
| Dividers along | 0 | 0 – 4 | Walls along the tray, splitting it front to back. |
| Finger notch width | 50 mm | 0 – 80 mm | Width of the notches in both long walls to lift the tray out (0 = none). |
| Finger notch depth | 10 mm | 0 – 40 mm | Straight depth of the notches; a 5 mm rounded bottom comes below it. |
| Seal and feet | |||
| Seal groove width | 1 mm | 0 – 2 mm | Groove in the middle of the bottom half’s rim for a sealing cord (0 = no groove). |
| Seal groove depth | 1 mm | 0.4 – 2 mm | Depth of the groove; a cord slightly thicker than the depth is pressed by the lid. |
| Foot diameter | 14 mm | 8 – 20 mm | Diameter of the feet at the ground; they widen toward the case. |
| Foot height | 5 mm | 2.5 – 8 mm | Height of the feet below the bottom face. |
| Foot inset | 25 mm | 10 – 40 mm | Distance of the feet from the outer edges. |
| Hinges | |||
| Hinge barrel diameter | 8 mm | 6 – 10 mm | Diameter of the hinge knuckles. |
| Hinge length | 20 mm | 12 – 30 mm | Length of each of the two hinges (three knuckles). |
| Hinge leaf length | 20 mm | 10 – 30 mm | How far each leaf reaches down the bottom half or up the lid from the rim. |
| Hinge leaf thickness | 2.5 mm | 1.6 – 4 mm | Thickness of the leaves that are screwed to the case. |
| Pin diameter | 3 mm | 2 – 4 mm | Diameter of the hinge pin, e.g. 3 mm for an M3 screw; the hole is 0.3 mm larger. |
| Hinge clearance | 0.3 mm | 0.15 – 0.6 mm | Gap between neighboring knuckles and between the knuckles and the walls. |
| Screw holes | 3 mm | 2.5 – 4 mm | Hole diameter of every screw of the hinges and latches. |
| Latches | |||
| Latch width | 36 mm | 20 – 40 mm | Width of the two latches (base and lever). |
| Latch plate height | 24 mm | 14 – 30 mm | Height of the lever plate on the lid and of the base plate on the bottom half; shortened on low halves. |
| Base plate thickness | 3 mm | 2 – 4 mm | Thickness of the latch base plate; the catch bar stands 2 mm further out. |
| Hook post height | 10 mm | 6 – 14 mm | Height of the post between the base plate and the catch bar at the rim. |
| Hook post width | 3 mm | 2 – 5 mm | Width of the post that carries the catch bar. |
| Lever arm length | 30 mm | 20 – 40 mm | Length of the springy arm from the top of the lever plate down to the hook below the rim. |
| Lever thickness | 2.5 mm | 1.6 – 3.5 mm | Thickness of the lever plate and of its arm. |
| Grip height | 16 mm | 8 – 20 mm | Height of the butterfly grip on the lever arm. |
| Grip depth | 14 mm | 6 – 18 mm | How far the grip stands out, measured from the lever arm. |
| Weave panel | |||
| Panel margin | 12 mm | 6 – 20 mm | Distance of the panel from the edges of the lid. |
| Panel thickness | 3 mm | 1.6 – 4 mm | Thickness of the panel; the strips cross at half of it. |
| Strip width | 4 mm | 2 – 8 mm | Width of the woven strips. |
| Strip gap | 3 mm | 1.5 – 6 mm | Gap between neighboring strips. |
| Frame width | 3 mm | 2 – 6 mm | Width of the frame around the strips. |
| Panel clearance | 0.2 mm | 0.1 – 0.5 mm | How much smaller the panel is than its place on the lid, on every side. |
Frequently asked questions
Has the case been test-printed, and will it close properly?
No. Tests and slicing in PrusaSlicer checked the geometry, but nobody has printed and assembled a case yet. The hinge and the latch are ported from an original that was never assembled either, so print one hinge and one latch as a test before you print a large case.
Do I need supports?
Only for the bottom half with its feet: the floor between the feet hangs in the air, so PrusaSlicer adds about 22.8 g of supports on the build plate. Switch “Feet” off and it prints without. Lid, tray, hinges, latches and weave panel slice without supports.
What do I need besides filament?
M3 screws and nuts: for the default case two hinge pins of 25 mm and fourteen short screws of 10 mm. A sealing cord for the groove and six self-adhesive rubber pads for the feet are optional. The editor shows the lengths for your settings.
Is the case waterproof or dustproof?
We do not claim that. The rim has a groove for a sealing cord, but nobody has tested how well it seals, and printed hinges and a printed lid are not made for that. Do not rely on it to keep water out.
What did you change compared with the original?
The original’s parts do not fit together: hinge knuckles cut into the walls, hinge leaves overlap, the lever collides with its catch, screw holes miss their screws. We fixed that, adapted the parts for printing and gave the tray slots so it slides past the nuts. The list is under “Origin and license”.
Why is the case limited to 170 mm?
Every part has to fit a 180 mm print bed. The halves are at most 170 × 140 mm, the hardware plate with hinges and latches is about 161 mm wide. The original’s split into three pieces for small beds is not needed, so we dropped it.
Origin & license
- open-cad (Protective Storage Box) by slahiri · MIT · code ported – Ported: the shape, sizes and parameters of all parts. Ported and adapted: bottom half, lid, standoff feet, tray (plus optional dividers), hinge halves A and B, latch base, lever and weave panel. Source defects fixed: gasket groove (removed the whole rim top), screw holes that missed their screws, pad recess enclosed in the foot, hinge knuckles cutting into both walls, overlapping hinge leaves, catch bar inside the wall, lever colliding with the hook post and catch bar. Print adaptations: 50° chamfers under the rounded edge and the ledge, teardrop holes, hinges on the leaf edge with a 55° gusset, springy lever arm with a lead-in, weave strips without free bridges. So the tray fits past the nuts of the hinge and latch-base screws: slots in its outer wall and gaps in the ledge. Left out: the three-piece split. Hinge and latch are not test-printed yet.