Tutorial

How to Design a PCB Enclosure with AI

·Updated ·4 min read·Natalie Chan

To make a 3D-printable case for a PCB, photograph the board from above, turn the photo into a true-scale outline in Bevell, then press Make a case in the editor. It builds a base with a pocket cut to the board's measured size and a hinged lid, and exports STL or 3MF for your slicer.

The usual way is calipers and an afternoon in CAD: measure the board, model the cavity, add the clearances, cut the ports, design a lid that closes. Here the photo gives you the outline at its real size, and the case is built around it with fits worked out for your printer.

Try it on your own file

Preview unlimited conversions for free, no account needed. You only pay when you download.

Drop a file here or click to browse

Photo: PNG, JPG, WebP, up to 10 MB and 52 megapixels

Drawing: PDF, TIFF, up to 50 MB

Free previews, no sign-up

What you need

  • ›A top-down photo of the board. On a plain background that contrasts with it, camera straight overhead. An angle bakes perspective into the outline.
  • ›One real measurement. The board's length or width, from calipers or its datasheet.
  • ›A 3D printer. The fits are worked out for PLA, PETG or ABS/ASA, at a 0.2 to 0.8 mm nozzle.

Steps

1

Convert the photo

Upload it at bevell.app/image-to-dxf. For a board on a plain background, Outline only traces its exact silhouette with nothing redrawn. Previews are free, so try another mode if the first is not right.

2

Set the real size

Open Set size, drag across the length you know and type it, for example 85 mm along a Raspberry Pi 4. Everything scales with it, so the pocket comes out the size of the board.

3

Open it in the editor

Press Edit output under the result. Click the board's outline. If it is not one closed shape, select it and press Shift+O (Outline) to close it on a layer of its own.

4

Make a case

With the outline selected, press Make a case and type the Depth (mm): the board's thickness, plus its tallest component, plus a little headroom. The case builds with a hinged lid, laid open flat the way it prints. The pocket is cut to the outline's measured size plus a fit for your material and nozzle, and Space around parts sets the gap.

5

Cut the ports

Draw each opening as a closed shape, a rectangle for USB-C or a circle for a barrel jack. In Layers, its ⋯ menu has Move to face or plane: click the wall the connector faces, then Cut through it. The same works on the lid, for a window over LEDs or a header.

6

Choose how it closes

Closure is Auto unless you pick one: Snap tab, Double side clips or Snap bead. Auto picks what the edge has room for and says why. Round outside edges takes the corners off.

7

Export and print

Export STL or 3MF. It prints open, with the hinge printed in place, so the lid swings shut straight off the bed.

What it does not do yet

  • ›Ports are not found for you. You draw each opening. The photo gives you where the connectors sit, at true scale, to draw them over.
  • ›No standoff or screw boss tool. The board sits in its pocket. For standoffs, draw circles on the pocket floor and Extrude them.
  • ›Made for 3D printing. No draft angles for injection moulding. Print a test case before a batch, and adjust Space around parts if the fit is tight.

What it costs

Without Unlimited you can edit and export one project for free: your first change makes that drawing your project, and other projects open read-only.

Working in your own CAD instead?

Take the board's outline as a DXF and model the case yourself: PCB enclosure from a photo covers the outline, holes and port positions, and Image to DXF for Fusion 360 gets it into Fusion as a sketch.