Skip to content
TaskNinja

HomeBlog

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.

By the TaskNinja team · · 7 min read

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

FeatureSize
Outside100 x 60 mm, 40 mm tall
Vertical corner fillets6 mm radius
Wall and floor thickness2 mm (Shell)
Open faceTop, removed by Shell
Cable slot12 x 6 mm, 10 mm above the floor, front wall only
Sizes used in this example (PLA)

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

  1. Open Trevolyx in desktop Chrome or Edge and start a new Part.
  2. Start a sketch on the Top Plane, so the box sits flat with its height going up.
  3. 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.
  4. Check that the status bar says Fully Defined.
Trevolyx top view of the box outline sketch on the Top Plane: a 100 by 60 mm rectangle with a dashed construction diagonal through the origin and Fully Defined in the status bar
The outline. Centring it on the origin keeps every later feature symmetric.

Step 2: extrude and round the corners

  1. Exit the sketch and press Extruded Boss/Base, Blind, 40 mm. You now have a solid block.
  2. 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.

Trevolyx Shell panel with Thickness 2 mm, Shell outward unticked and Face 1 listed under Faces to Remove, with the top face of the filleted block highlighted
The Shell panel. The highlighted top face is the one removed.
SettingValue hereWhat it does
Thickness2 mmWall thickness for every face you keep
Faces to RemoveTop faceThese faces become openings. Pick none to get a sealed hollow part.
Shell outwardOffOff keeps the outside size and builds the walls inward. On keeps the inside size and grows the part outward.
Multi-thickness FacesNoneGive chosen faces their own thickness, for example a thicker floor for screw bosses
Shell settings and what they do

Step 4: cut the cable slot

  1. Start a sketch on the Front Plane. It cuts through the middle of the box, parallel to the front and back walls.
  2. Draw a 12 x 6 mm rectangle centred left to right, with its bottom edge 10 mm above the floor.
  3. 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.
Trevolyx isometric view of the finished box: open top, 2 mm walls, 4 mm inside corner radius and a rectangular cable slot in the front wall
The finished box: four features and two sketches.

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.

Trevolyx Thickness Analysis with the thin limit at 2 mm: thinnest 1.996 mm, under the limit 2,461.51 square millimetres, with only the four rounded corners shaded darker
Thickness Analysis. Only the rounded corners fall under the 2 mm limit, and only by 0.004 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³.

Trevolyx Mass Properties panel for the finished box in PLA at 1240 kg per cubic metre: mass 43.211 g, volume 34,847.4 cubic millimetres, bounding box 100 by 40 by 60 mm
Mass Properties on the Evaluate tab for the finished box.
CheckBy handIn the appDifference
Solid block after Fillet238,763.9 mm³238,753 mm³-0.005%
After Shell34,997.8 mm³34,991.4 mm³-0.02%
Removed by the slot144 mm³144.0 mm³0
Finished box34,853.8 mm³34,847.4 mm³-0.02%
Mass in PLA43.22 g43.211 g-0.02%
Height of centre of mass, before the slot14.178 mm14.177 mm0
Bounding box100 x 40 x 60 mm100 x 40 x 60 mm0
Hand check against Mass Properties (PLA, 1,240 kg/m³)

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.

Trevolyx Save As dialog with file name Enclosure and type STL, with a note that mesh export is in millimetres and the feature tree is not included
The export dialog. Keep a .tnprt copy too if you want to edit the box later.

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

Written by the TaskNinja team with help from an AI writing tool, then checked against the live app and hand calculations.