3D Printable Enclosure Generator — Custom Project Boxes from a Description
SliceFoundry's enclosure generator builds custom project boxes and electronics
cases sized to your PCB, module, or device. Describe the inside dimensions, the
ports you need cut, and the mounting style — the AI produces a printable STL
you can preview and refine.
Useful when generic Hammond-style boxes don't fit, when you want exact port
cutouts (USB-C, HDMI, barrel jack, DB-9), or when you need lid clips, screw
posts, or PCB standoffs in specific positions.
What the Generator Can Produce
- Two-piece enclosures with snap-fit or screw-down lids.
- Wall-mount and DIN-rail variants.
- Cases sized to common boards — Raspberry Pi, Arduino, ESP32, custom PCBs.
- Ventilated enclosures with louvered or hex grids.
- IP-rated styles with overlapping lid lips (not waterproof, but splash-resistant).
- Battery compartments with sprung contacts and removable lids.
What to Specify in the Prompt
- Internal dimensions — length × width × height, plus extra clearance for cables.
- Wall thickness — 2–3mm is typical for FDM enclosures.
- PCB mounting — corner standoffs with M2 or M2.5 holes, snap clips, or adhesive pads.
- Port cutouts — for each port, give the position (which wall, distance from corner) and dimensions.
- Lid attachment — friction fit, snap clips, four M3 screws into recessed posts, or sliding lid.
- Branding / labels — embossed or recessed text on the top face.
Example Prompt
"Generate an enclosure for a Raspberry Pi 4. Internal dimensions 92 × 65 × 30mm,
2.5mm walls. Bottom shell has four corner standoffs with M2.5 holes spaced at
the Pi's mounting points (58 × 49mm). Cutouts: USB-C power on one short side,
micro-HDMI × 2 and 3.5mm jack on the other short side, full Ethernet + 4× USB
on one long side, microSD slot on the opposite long side. Lid is a friction-fit
top with a 20 × 5mm vent slot above the SoC. Recessed text 'PI 4' on the lid."
Printing Tips for Enclosures
- Print the body bottom-up for clean port cutout edges. Use organic / tree supports if any features overhang.
- For snap-fit lids, PETG generally outperforms PLA — better fatigue life on the snap arms.
- Use 3–4 perimeters for stiffness without going to high infill.
- If the box will be handled often, fillet the outside edges in the prompt so corners feel comfortable.
- For boxes mounted in a vehicle or enclosure, ABS or ASA tolerates heat better than PLA.
Generate Your Enclosure
Open SliceFoundry and generate a custom enclosure →