Design a 3D printed enclosure for your project box
A 3D printed enclosure starts with the board's measured dimensions, not a generic box. Describe the board, ports, fasteners and vents in AdderCAD Studio, then adjust the solid model and export the box and lid for printing.
Last updated 16 November 2026.
Start a 3D printed enclosure with the real board
Measure the board and its mounting holes before sizing a 3D printed enclosure. Use the mechanical drawing for board dimensions, hole positions and connector locations, then check the physical board with calipers. The right outside dimensions will not rescue a case with a misplaced mounting hole or port.
Record the tallest component's height and the room needed for plugs and cables. An outline dimension does not include everything attached to the board.
AdderCAD Studio can search the web for published board dimensions, and its agent is instructed to cite the source. Treat the result as a starting point. Board revisions and third-party boards may not match the drawing.
ESP32 dev boards vary in size and mounting-hole pattern by maker. Check your board's maker drawing, then measure the physical board with calipers.
Describe the box, lid and fasteners
Name the board, connector openings, ventilation, fastening method and lid in your prompt. Include dimensions you have verified. Start with the basic enclosure, then add openings and hardware after checking the model.
Example prompt: "Raspberry Pi 5 case with vent slots and a separate lid. Use the published mechanical drawing for board dimensions and cite it."
After reviewing that model, refine it:
Example prompt: "Add one connector opening using my verified position, plus M3 heat-set inserts in the screw posts. Leave the other openings until I check this one."
Studio's agent writes CAD code that builds a B-rep solid. Every numeric parameter becomes a slider, so you can change wall thickness, lid clearance, vent width and post size without another AI request. You can also inspect and edit the code. For a part that must fit, see how CAD differs from an AI mesh model.
With sign-in, the agent can search the open step.parts catalog for boards and connectors and bring in their STEP files. Verify critical catalog dimensions yourself.
Choose enclosure wall thickness
Two millimetres is a common enclosure wall choice, but published minimums range from 0.8 mm to 2.4 mm. The right value depends on the nozzle, part size, loads and whether screws thread into the plastic.
| Source | Published guidance |
|---|---|
| Hubs and FacFox | 2 mm minimum wall; both guides are about six years old |
| Zbotic | 2.4 mm as a practical wall, equivalent to three perimeters with a 0.4 mm nozzle |
| PCBWay | 0.8 mm, or two nozzle widths, as a minimum |
Where screws thread into plastic, allow at least 3 mm (published enclosure guides). AdderCAD's default FDM minimum wall is 1.6 mm on a part about 50 mm across, based on JLC3DP's design guideline. That is a process starting point. A larger case or loaded mounting point may need more material.
Give the lid a printable fit
The Hubs, FacFox and Zbotic guides suggest about 0.2 mm clearance per side for an FDM lid and treat a 0 to 0.1 mm gap as too tight. Do not confuse per-side clearance with the total difference between mating dimensions.
AdderCAD's default is also 0.2 mm per side for a calibrated desktop FDM printer. Print services often quote about 0.5 mm, without saying whether that is per side or total. These figures do not guarantee a fit, so print a short lid-and-box section first.
Size screw holes and posts for their job
A pass-through hole, a self-tapping hole and a heat-set insert hole need different sizes. Choose the fastening method first. Published enclosure guides give the general clearance and self-tapping rules below. AdderCAD supplies the M3-specific values.
| Fastener use | Starting point |
|---|---|
| General clearance hole | Screw diameter plus 0.25 mm |
| Self-tapping hole | Screw diameter minus 0.25 mm (2.75 mm for M3), or about 85 percent of nominal diameter (about 2.55 mm for M3) |
| M3 clearance in AdderCAD's ISO 273 table | 3.4 mm |
| M3 heat-set insert hole in AdderCAD's rules | 4.0 mm |
The two self-tapping rules produce different M3 holes. Test between 2.75 mm and about 2.55 mm for your screw and material. These are starting rules, not guaranteed fits. The same enclosure guides recommend a boss wall of at least one hole diameter. Keep post and hole sizes editable so you can correct them after checking the hardware.
Make room for ports, cables and vents
Size each opening for the connector and plug, then check the cable's space inside the box. Published enclosure guides suggest 0.5 mm of component room, increasing to 1 mm where needed. Measure the actual connector.
One published enclosure guide gives 1.5 mm as the narrowest FDM vent slot. Keep vent width adjustable, and review the material remaining around the openings.
Orient the parts and check the geometry
Print the box open side up and the lid top face down, following the Hubs, FacFox and Zbotic guides. Keep screw bosses vertical when practical.
Studio checks each part and the whole design against the selected machine's build volume. Its wall check uses ray casting and reports minimum and 5th-percentile thickness. It flags down-facing faces beyond the self-supporting angle, which defaults to 45 degrees for FDM, and ranks orientations by support need.
The interference check reports overlap volume and minimum gap between parts. These measurements and rules of thumb do not guarantee that the case will print or fit. Complex parts can fail or need several tries.
Export the box and lid separately
Use 3MF to keep the box and lid separate in your slicer. AdderCAD writes one object per part in 3MF. STEP keeps part names for CAD work, and STL is also available. Exports run in the browser.
AdderCAD is pre-launch. Verify the board and review the checks before printing. For the wider workflow, see text to CAD for 3D printing.