How to design a 3D printable enclosure box in free CAD: Shell, a cable slot and STL export
Model a hollow project box with Shell, cut a cable slot, check the 2 mm walls and export an STL. Every volume checked by hand, free in your browser.
A box for a circuit board, sensor or battery pack is one of the first things people model for a 3D printer. You could draw the outside and the inside and subtract one from the other, but the quick way is one solid block and a single Shell command that hollows it out with walls of the thickness you type.
This guide builds a rounded project box in Trevolyx, our free 3D CAD app that runs in Chrome or Edge with no install or account. Every number below came from the live app on 1 Dec 2026 and was checked by hand.
The box
| Feature | Size |
|---|---|
| Outside | 100 x 60 mm, 40 mm tall |
| Vertical corner fillets | 6 mm radius |
| Wall and floor thickness | 2 mm (Shell) |
| Open face | Top, removed by Shell |
| Cable slot | 12 x 6 mm, 10 mm above the floor, front wall only |
These sizes show the method. For a real board, measure it, add clearance, and size the slot from your connector's datasheet.
Step 1: sketch the outline
- Open Trevolyx in desktop Chrome or Edge and start a new Part.
- Start a sketch on the Top Plane, so the box sits flat with its height going up.
- Draw a rectangle centred on the origin (a construction diagonal with its midpoint on the origin does this), then add Smart Dimensions of 100 and 60 mm.
- Check that the status bar says Fully Defined.

Step 2: extrude and round the corners
- Exit the sketch and press Extruded Boss/Base, Blind, 40 mm. You now have a solid block.
- Press Fillet, pick the four vertical edges, and set the radius to 6 mm.
Fillet before you shell. Shell offsets every face it keeps, so a 6 mm outside corner becomes a 4 mm inside corner by itself (6 minus the 2 mm wall). Shell first and you must fillet both sets of corners separately.
Step 3: Shell
Press Shell on the Features tab, type 2 for the thickness and click the top face so it appears under Faces to Remove. That face becomes the opening, and every other face moves inward by 2 mm to form the walls and floor. Press the green tick.

| Setting | Value here | What it does |
|---|---|---|
| Thickness | 2 mm | Wall thickness for every face you keep |
| Faces to Remove | Top face | These faces become openings. Pick none to get a sealed hollow part. |
| Shell outward | Off | Off keeps the outside size and builds the walls inward. On keeps the inside size and grows the part outward. |
| Multi-thickness Faces | None | Give chosen faces their own thickness, for example a thicker floor for screw bosses |
Step 4: cut the cable slot
- Start a sketch on the Front Plane. It cuts through the middle of the box, parallel to the front and back walls.
- Draw a 12 x 6 mm rectangle centred left to right, with its bottom edge 10 mm above the floor.
- Exit and press Extruded Cut, Blind, 35 mm, toward the front wall. That depth starts in the middle, crosses the empty inside and passes the wall, so only the front wall is cut. If the preview heads for the back wall, tick Reverse Direction. Through All would cut the back wall too.

Step 5: check the walls
On the Evaluate tab, Thickness Analysis colours every face by how thick the part is behind it. With the thin limit at 2 mm, the flat walls and the floor read as normal and only the curved corner faces are flagged. The reported thinnest value is 1.996 mm.

That is not a modelling error. The analysis uses a faceted copy of the round faces, and flat facets sit slightly inside a true arc. The curved corner faces add up to 4 x (pi / 2 x 6) x 40 + 4 x (pi / 2 x 4) x 38 = 2,463 mm², and the app reports 2,461.51 mm². Set the limit a little below your wall, say 1.9 mm, to see only truly thin areas.
Check it by hand
A rectangle with four rounded corners of radius r has area L x W minus (4 minus pi) x r². The outside block is that area times 40 mm. Shell leaves an inside pocket 96 x 56 mm with 4 mm corners and 38 mm deep, and the walls are the difference. The slot removes 12 x 6 x 2 = 144 mm³. PLA in the app's material list is 1,240 kg/m³, which is 1.24 g per 1,000 mm³.

| Check | By hand | In the app | Difference |
|---|---|---|---|
| Solid block after Fillet | 238,763.9 mm³ | 238,753 mm³ | -0.005% |
| After Shell | 34,997.8 mm³ | 34,991.4 mm³ | -0.02% |
| Removed by the slot | 144 mm³ | 144.0 mm³ | 0 |
| Finished box | 34,853.8 mm³ | 34,847.4 mm³ | -0.02% |
| Mass in PLA | 43.22 g | 43.211 g | -0.02% |
| Height of centre of mass, before the slot | 14.178 mm | 14.177 mm | 0 |
| Bounding box | 100 x 40 x 60 mm | 100 x 40 x 60 mm | 0 |
Shelling took the part from 296 g of solid PLA to 43 g of walls. That is the model weight, not the print weight: perimeter, infill and top and bottom layer settings change the real amount, so read filament use from your slicer.
Step 6: export an STL
Choose File, then Export (STL, OBJ, 3MF, GLB, STEP), pick STL as the type and press Save. Your browser saves the file to your computer; the model is not uploaded.

We checked the exported file: a binary STL of 464 triangles and 23,284 bytes (84 header bytes plus 50 per triangle), 100 x 40 x 60 mm, enclosing 34,847.4 mm³, the same as Mass Properties. STL stores only triangles, so keep the part file for changes.
The box height runs along Y in the file. If your slicer treats Z as up and shows the box on its side, rotate it so the open top faces up.
Common mistakes
- Shelling before filleting. You end up with sharp inside corners, or two sets of fillets to keep in step.
- Forgetting to pick a face to remove. Shell with no removed face makes a sealed hollow part, which looks solid on screen.
- Cutting the slot Through All. It cuts both walls. Use a Blind depth that just passes one.
- Guessing the wall thickness. Printed walls are built from whole extrusion lines. PrusaSlicer, for example, shows a recommended thin wall thickness for your layer height and perimeter count.
Next, add screw holes to a lid with bolt holes on a PCD, make a 2D drawing from the model, or browse every command on the Trevolyx features page. Already have a STEP file? Convert STEP to STL directly.
FAQ
What does the Shell feature do in CAD?
It hollows a solid. You choose a wall thickness and the faces to remove, and every remaining face is offset by that thickness, inward by default.
How thick should the walls of a 3D printed enclosure be?
There is no single number; it depends on your nozzle, layer height and how stiff the box must be. Start from a value your slicer recommends for whole perimeters, print a test, and change the Shell thickness if needed.
Should I fillet before or after Shell?
Before, for the outside corners. Shell then gives matching inside corners of radius minus wall thickness. Here a 6 mm outside fillet with a 2 mm wall gave 4 mm inside corners.
Is there free CAD that exports STL in a browser?
Yes. Trevolyx is free, runs in Chrome or Edge on a normal laptop, keeps files on your computer, needs no account and exports STL, OBJ, 3MF, GLB and STEP. See free online CAD with no download for what it needs.
Sources
- STL (STereoLithography) File Format Family, Library of Congress (STL stores a triangle mesh with no colour or feature data; binary and ASCII variants)
- Layers and perimeters, Prusa Knowledge Base (recommended thin wall thickness for a layer height and perimeter count)
- Rounded Rectangle, Wolfram MathWorld (rounded rectangle area, written above with the outside sizes)
- Every volume, mass, thickness and file size above was measured on the live Trevolyx app on 1 Dec 2026
Written by the TaskNinja team with help from an AI writing tool, then checked against the live app and hand calculations.