Part 5 Β· Design for printing

Design patterns

Thirty proven building blocks for printed parts. Each pattern has a diagram, the parameters that matter (in mm, for a 0.4 mm nozzle and 0.2 mm layers), a typical use and a pointer to the rules behind it. Combine them instead of designing every part from a blank sheet.

Intermediate⏱ 45 min read
What you will learn

How to recognize a recurring design problem (a lid, a clip, a hinge, a gear) and apply a tested pattern with starting dimensions. Every number is a starting value: adjust it with your own tolerance coupon and keep the patterns in a parametric model (see Parametric CAD workflow).

πŸ”° How to use this catalog

A design pattern is a solution that works repeatedly: a way to hold a lid, mount a bearing or split a big part. Experienced designers keep a library of them. A pattern is never copied blindly; you take the topology (the idea) and then set the parameters for your material, printer and load. The cards below are grouped by problem: housings, holders and mounts, mechanisms, structure and connections, and workflows. For the alternatives to each mechanism (seven kinds of hinge, nine latches, ten mounts and more), see the Mechanism catalog.

All dimensions assume a 0.4 mm nozzle, 0.2 mm layers and an accurate printer such as the X2D. The shared defaults are listed once here, so the cards stay short.

ParameterDefaultWhy
Wall thickness1.6 mm (4 lines of 0.4)Strong enough for housings; see Principles
Floor / roof1.2 mm (6 layers)Closes the top surface without pillowing
Inside filletβ‰₯ 1 mmRemoves stress concentrations
Clearance between parts0.2–0.3 mm per side (slip)See Tolerances & fits
Overhang≀ 45Β°Printable without supports
Minimum feature0.8 mmTwo lines wide
Tip

When two patterns conflict (a thin snap arm next to a thick wall), solve the load path first, then the printing constraint, then the look. The strength and orientation page tells you which way to lay the part.

πŸ”° Housings and lids

1 Β· Snap-lid enclosure

press down0.3 mm gap
Figure 1. Lid with an inner lip and two snap bumps.

Use: sensor boxes, remote cases, anything opened rarely.

  • Lip height 3–4 mm, lip wall 1.2 mm, gap 0.2–0.3 mm per side
  • Snap bump 0.4–0.6 mm high, 45Β° lead-in, 20–30Β° return
  • Add a thumb notch 8 Γ— 3 mm for opening
  • Rules: snap-fits

2 Β· Screw-lid enclosure

M3 pilot Ø 2.5
Figure 2. Corner bosses with screws through the lid.

Use: serviceable electronics and anything that must be opened many times.

  • Pilot hole Ø 2.5 mm for M3 self-tapping (or insert pocket Ø 4.0–4.2)
  • Boss outer Ø 7–8 mm, fillet 1 mm, rib 1.2 mm
  • Lid hole Ø 3.4 mm, counterbore Ø 6.2 Γ— 3 mm
  • Rules: bosses, heat-set inserts

3 Β· Electronics enclosure with standoffs and vents

PCBstandoff 5 mmslots 2 Γ— 12
Figure 3. Standoffs lift the board; slots let hot air escape.

Use: microcontroller projects, power supplies, routers.

  • Standoff height 4–6 mm; hole for M2.5 pilot Ø 2.2
  • Vent slots 2 mm wide, 3 mm pitch, vertical (printable without supports)
  • Slot area β‰ˆ 10 % of the heat-producing zone; keep PLA below 50 Β°C
  • Rules: standoffs, cables

4 Β· Hinge box

detent bumppin Ø 3, gap 0.3
Figure 4. Two or three hinge knuckles with a pin along the back.

Use: jewellery boxes, small tool cases.

  • Pin Ø 3 mm, hole Ø 3.4 mm; knuckle Ø 8 mm; axial gap 0.4 mm
  • Print with the hinge axis horizontal, pin as a separate filament or steel rod
  • Add a 0.4 mm detent bump to hold the lid closed
  • Rules: pins & hinges

5 Β· Threaded container

print upright, no supports
Figure 5. A coarse thread (pitch 3–4 mm) prints without supports.

Use: pill and spice containers, geocaches, storage jars.

  • Pitch 3–4 mm, 60Β° profile with 45Β° flanks (no overhang)
  • Radial clearance 0.3 mm; 2–3 turns are enough
  • Add a printed gasket groove or TPU ring for water resistance
  • Rules: thread tolerance

πŸ”° Holders, mounts and organizers

6 Β· Cable clip

opening Ø Γ— 0.85wall 1.6, arm length β‰₯ 8
Figure 6. The opening is narrower than the cable so it snaps in.

Use: desk cables, USB leads, camera wires.

  • Inner Ø = cable Ø + 0.4 mm; opening β‰ˆ 85 % of Ø
  • Print on its side so the layers run around the C
  • Material PETG or ABS for the flex; PLA breaks after a few cycles

7 Β· Tool holder

hole = tool Ø + 1 mm, depth β‰₯ 25 mmwall 2 mm between holes
Figure 7. A plate with drilled pockets sized to the tools.

Use: workshop walls, desk organizers.

  • Pocket = measured tool Ø + 1 mm; chamfer the mouth 1 mm
  • Load: tool weight is shear, so print flat with 4 walls
  • Pre-measure with callipers; list the Ø in a parameter table

8 Β· Phone stand

angle 65Β°lip 10 mm, slot 12 mm
Figure 8. A wedge with a lip and a charging-cable gap.

Use: phones, tablets, e-readers.

  • Backrest angle 60–70Β°; slot width = device thickness + 3 mm (or 12 mm with a case)
  • Base β‰₯ 1.5 Γ— height for stability, add weight (coins) in a pocket
  • Print on its side so layers run along the bend

9 Β· Wall-mount keyhole

Ø 9 entryslot 5 widescrew head Ø 8, shank Ø 4
Figure 9. Slide the part down onto a screw head.

Use: hang a box, a sign or a panel on a wall.

  • Entry Ø = head Ø + 1 mm; slot = shank Ø + 1 mm; slot length β‰₯ 8 mm
  • Make the rear 2 mm thick around the slot; slot walls 3 mm minimum
  • Put the keyhole axis in the XY plane so the screw loads the lines, not layers

10 Β· Magnetic mount

steel platepocket = magnet + 0.1 Ø, +0.2 depthskin 0.4–0.6
Figure 10. A magnet sealed behind a thin skin.

Use: hold-downs, tool racks, removable covers, fridge mounts.

  • Pocket Ø = magnet Ø + 0.1–0.2 mm; depth = thickness + 0.2 mm
  • Skin toward the steel 0.4–0.6 mm; glue magnet with CA or pause the print and insert
  • Keep polarity identical in every part (mark with a dot)
  • Rules: magnets

11 Β· Modular bins on a grid

pitch (e.g. 42 mm)stacking lip + foot
Figure 11. A repeating pitch lets bins of different sizes share a baseplate.

Use: workshop drawers, electronics parts, desk organizers. The idea (a baseplate on a fixed pitch with chamfered, stackable feet) is public and used by several open systems; design your own dimensions or follow the specification of a system you want compatibility with.

  • Choose one pitch and make every size a multiple of it, minus 0.5 mm total clearance
  • Foot chamfer 45Β° (printable), height 4–5 mm
  • Print floors on the bed face with 3–4 walls; add a finger scoop radius β‰₯ 8 mm

12 Β· Drawer rails

45Β° flanks, clearance 0.3 mm per side
Figure 12. A 45Β° dovetail rail keeps the drawer from tilting.

Use: small parts drawers, sliding lids, battery covers.

  • Flanks 45Β° so nothing needs support; width 8–12 mm, height 5 mm
  • Clearance 0.3 mm per side; add a 0.4 mm detent to stop the drawer
  • Run the slide axis along a printed line direction and wax or dry-lube the rail
  • Rules: dovetails and slides

13 Β· Labels and inlays

insert / paper / paint recess 0.6–1.2 mm deep; text 1 mm tall; stroke β‰₯ 0.8
Figure 13. A recess with a thin lip holds a label, tile or color inlay.

Use: bins, drawers, control panels.

  • Embossed text: height 0.6–1 mm, stroke β‰₯ 0.8 mm, font size β‰₯ 6 mm
  • Color inlay: change filament at the layer where the recess starts (see multi-color)
  • A slide-in label gap = label thickness + 0.3 mm

πŸš€ Mechanisms

Moving parts multiply every tolerance error, so mechanisms use the biggest clearances in the catalog. Test each one on a small coupon before printing the full assembly.

14 Β· Spring and flexure

zig-zag: bar 1.2 Γ— 8, bends in XYflexure neck 0.8–1.2
Figure 14. A zig-zag spring and a thin-neck flexure.

Use: latches, buttons, detents, return springs.

  • Print so the bend is in the XY plane (layers along the beam)
  • Neck 0.8–1.2 mm thick, length β‰₯ 6Γ— thickness; radius 2 mm at the ends
  • Strain ≀ 1 % in PETG, ≀ 0.4 % in PLA: see snap-fit math

15 Β· Compliant mechanism

hinge 0.8 mm, arm 3 mm
Figure 15. One-piece gripper: thin hinges bend, thick arms stay rigid.

Use: tweezers, grippers, clamps, mechanical sample holders.

  • Rigid arms β‰₯ 3 mm thick; hinge neck 0.8–1.2 mm
  • Make the hinge long (10–15 mm) to spread strain; use fillets
  • Use PETG or nylon; check by hand-cycling 100 times

16 Β· Gear train

30 teeth20 teeth β†’ 1.5 : 1
Figure 16. Gears of module 2 mesh at (z₁ + zβ‚‚) Γ— 1 mm center distance.

Use: toys, gearboxes, clocks, adjustable feeders.

  • Module 1.5–2 (tooth β‰₯ 3 mm), 20Β° pressure angle, β‰₯ 12 teeth
  • Backlash 0.2–0.3 mm; center distance +0.2 mm
  • Print flat; PETG or nylon for wear; face width 6–10 mm
  • Rules: gears

17 Β· Cam and follower

lift 6 mmeccentric offset = lift Γ· 2
Figure 17. An eccentric disc converts rotation into up-down motion.

Use: valves, clamps, indexing stops, small animated models.

  • Lift = 2 Γ— offset; keep pressure angle < 30Β° or the follower binds
  • Follower tip radius β‰₯ 3 mm; clearance 0.3 mm in its guide
  • Steel axle Ø 3 or 4 mm through a 0.2 mm slip fit

18 Β· Planetary gear

ring 48planet 12 Γ— 3sun 24
Figure 18. Ring = sun + 2 Γ— planet; planets must be spaced evenly.

Use: compact 3:1 – 5:1 reducers for motors, spinners, fidget toys.

  • Constraint: ring teeth = sun teeth + 2 Γ— planet teeth; (ring + sun) Γ· planets = integer
  • Backlash 0.25 mm; helical or herringbone teeth are quiet
  • Use a carrier of 4 mm thickness with steel pins Ø 3

19 Β· Ball bearing in place

gap 0.4ball Ø 5–6race groove 0.6
Figure 19. A bearing printed in place with captive balls.

Use: fidget spinners, turntables, demonstrations. Not for loads; buy a real bearing for machines.

  • Gap 0.4–0.5 mm; balls Ø β‰₯ 5 mm; 45Β° race walls
  • Print with a brim off, break free by twisting; slow speed
  • Rules: bearings, print-in-place

20 Β· Captive nut

insert from the sideM3: 5.7 AF Γ— 2.6pocket +0.2
Figure 20. A slot lets the nut slide in; the bolt locks it.

Use: any threaded connection that is tightened often: hardware, camera mounts, adjustable arms.

  • M3 nut 5.5 mm across flats, 2.4 mm thick β†’ pocket 5.7–5.9 Γ— 2.6–2.8 mm
  • Pause the print to insert from above, or use a side slot (no pause)
  • Wall around the pocket β‰₯ 1.6 mm; fillets only outside the pocket
  • Rules: bolted joints

πŸ”§ Structure and connections

21 Β· Press-fit pegs

peg Ø 5, hole Ø 4.9interference 0.05–0.1; chamfer 0.5
Figure 21. A split peg flexes slightly and presses into its hole.

Use: alignment pins, two-part assemblies, quick prototypes.

  • Hole diameter = peg diameter βˆ’ 0.05 to βˆ’0.1 mm (hole made by the slicer, so test)
  • Add a 0.5 mm lead-in chamfer and a 1 mm slit for flexibility
  • Pegs are strongest when their axis is in the layer plane for bending, vertical for shear
  • Rules: dowels

22 Β· Bracket with gussets

wall 3.2 (8 lines)gusset 1.6 thickfillet r 3+
Figure 22. Gusset and a fillet at the inside corner.

Use: shelf supports, motor mounts, brackets for a frame.

  • Print the L on its side so layers run along both legs, not across the corner
  • Gusset thickness β‰₯ 50 % of the wall; length β‰₯ 0.6 Γ— leg
  • Fillet r β‰₯ 3 mm at the root; β‰₯ 4 walls
  • Rules: ribs and gussets, orientation

23 Β· Modular connectors

key 10 wide, 45Β° flanks, 0.25 clearance
Figure 23. A bow-tie or dovetail key joins two modules.

Use: tiles, modular furniture models, large panels split for a small bed.

  • Bow-tie key 10–15 mm wide, 6 mm deep, 45Β° flanks
  • Clearance 0.2–0.3 mm per side; print the key flat so it spans layers
  • A 0.2 mm ridge on the key gives a friction hold
  • Rules: shape joints, splitting

24 Β· Custom jig

guide Ø = drill + 0.2fence 3 mm, steel sleeve for long runs
Figure 24. A jig locates the work and guides the tool.

Use: drilling, gluing, cutting, assembling, positioning parts for repeated work.

  • Datum on 2 faces (fence + stop); clearance 0.2 mm to the workpiece
  • Guide hole = drill Ø + 0.2 mm, height β‰₯ 2 Γ— drill Ø
  • PLA wears quickly under drills: add brass or steel sleeves for 50+ uses

25 Β· Adapter

Ø 38Ø 32transition 45°, wall 2
Figure 25. A stepped adapter joining two diameters.

Use: vacuum hoses, tube fittings, tool mounts, camera adapters.

  • Measure both ends at 3 places; fit = measured Ø βˆ’ 0.2 to 0.3 mm for a tight push
  • Taper ≀ 45Β° from vertical, or print the adapter standing
  • Ribs on the spigot to grip hoses; wall β‰₯ 2 mm

26 Β· Vase / spiral shell

wall = one line0.42–0.6 mmbase 2–3 mm solid
Figure 26. A single-wall profile; slope stays below 45Β° outward.

Use: decorative vases, lamps, pots. Water-tight with a sealed base and a spiral-vase mode.

  • Spiral vase mode: one line wall, no top, no infill, bottom 3–5 layers
  • Outward flare ≀ 35Β° from vertical; thin features β‰₯ 0.8 mm
  • Coat with epoxy or use a liner for a drink-safe result

πŸš€ Workflow patterns

Some patterns are not shapes but ways of working. They save the most time because they stop you printing the wrong part twice.

27 Β· Replacement-part workflow

measuremodelslice 5 mmfit checkprint adjust and repeat
Figure 27. Print a thin slice of the critical area first.
  1. Measure the interface (not the whole part) with callipers at 3 places; photograph the part with a ruler.
  2. Model the interface exactly and the rest freely, with every dimension as a parameter.
  3. Print a 3–5 mm slice of the critical area with 2 walls (10 minutes) and check the fit.
  4. Adjust by 0.1 mm steps; then print the full part in a tougher material than the original if loads are unknown.

28 Β· Cosplay shell splitting

pin Ø 4seam on a hard edgepiece ≀ bed βˆ’ 10 mm
Figure 28. Cut along natural edges; join with pins and overlap.

Use: helmets, armor, props larger than the bed.

  • Cut on existing creases and panel lines; hide seams under straps
  • Overlap tabs 8 mm wide, 1.6 mm thick, with pins Ø 4 mm every 40 mm
  • Orient each piece so curves are not stair-stepped; plan sanding allowance of 0.4 mm
  • Rules: splitting large parts

29 Β· Miniatures

layer 0.08–0.12nozzle 0.2 optionaltilt 15–45Β°
Figure 29. Tilt the figure slightly to avoid large flat undersides.

Use: game pieces, dioramas, 28–32 mm figures.

  • Layer height 0.08–0.12 mm; a 0.2 mm nozzle resolves 0.4 mm details
  • Minimum solid feature 0.6 mm (e.g. a sword), best 1 mm; thin parts bend, thick parts hold paint
  • Tilt 15–45Β° and use tree supports that touch only the base
  • Print slowly (30–40 mm/s) with cooling at 100 %

30 Β· Outdoor functional print

drain 3 mm hole, drip edge 3 mm overhang
Figure 30. Water runs off, UV is shaded, trapped water has an exit.

Use: garden sensors, camera housings, hooks, drainage fittings.

  • Material: ASA (best), PETG, PC; not PLA (softens at 55–60 Β°C in a parked car)
  • Slope surfaces β‰₯ 10Β° so water does not pool; drip edge β‰₯ 3 mm; drain holes 3 mm at the lowest point
  • Walls 2.4 mm (6 lines) to survive freeze–thaw; dark colors get hotter
  • Use stainless hardware with a heat-set insert, never a bare thread

πŸ”§ Orientation and material per pattern

The same shape fails differently depending on how it lies on the bed and what it is made of. Use this table as the first guess, then confirm with the strength and orientation rules. A pattern with the wrong orientation can lose half its strength even if every dimension is perfect.

PatternPrint orientationMaterialWhy
Snap lid (1)Lid flat, bumps on the wall facing sidewaysPETG, ABS, ASASnap arms need strain 1–2 %, PLA reaches 0.4 % when repeated
Screw enclosure (2)Open side upAny; inserts in PLABosses grow along Z with horizontal rings
Hinge box (4)Hinge axis horizontal, box uprightPETGLayers run around the pin
Cable clip (6)On its side, C in the XY planePETG, ABSBending along the layers
Phone stand (8)On its sidePLA, PETGBending load follows lines
Flexure (14)Flat, bend in XYPETG, TPU 95A, nylonZ-bending delaminates
Gears (16, 18)Flat on the bedPETG, nylon, POM-likeTeeth are strongest along the layer
Bracket (22)L on its sidePETG, PA-CFLayers run through both legs
Jig (24)Datum face downPLA, PETG, PLA-CFDatum faces are accurate against the bed
Outdoor housing (30)Open side up, lid flatASA, PCUV and heat resistance

πŸ”§ Parameters worth exposing

Before modeling a pattern, list the parameters that change between uses. Everything else should be a derived value (calculated from them) so that one change never breaks another. A short list keeps the model simple:

The first group changes by project, the second by printer, the third by filament and the fourth by taste. Keeping them apart in the model's header is what makes a pattern reusable: you copy it into the next project and fix only the first group. The complete method, including a sample OpenSCAD file, is in Parametric CAD workflow.

Trick: derive, don't type

If a lid lip needs to fit a box inner wall, write lip_outer = inner βˆ’ 2 Γ— clearance instead of a second hand-typed number. When you change the box, the lid follows. Hand-typed duplicates are the biggest source of mismatched parts.

πŸš€ Testing a pattern before you commit

Every pattern in this page has one critical interface. Instead of printing the whole object, print only that interface as a test slice and measure it. A snap lid is checked with a 20 mm length of wall; a thread with a 12 mm tall ring; a hinge with two knuckles; a gear mesh with two gears of 10 mm face width. The slices cost minutes, the full part may cost hours.

  1. Choose the one feature that decides success (the clearance, the strain, the thread engagement).
  2. Print three variants at once, for example clearances 0.2, 0.3 and 0.4 mm, labeled with embossed numbers.
  3. Fit-check by hand: does it assemble, move without play and hold the load you expect?
  4. Pick the winner, write the value in the parameter table together with filament, printer and nozzle.
  5. Print the full part and record any difference so the next version starts from facts.
Why one set of parameters is not enough

Clearances change with filament (PLA +0.15, PETG +0.2, ABS βˆ’0.05 relative), nozzle, speed and even humidity. Keep a short table for each filament you use regularly. See designing parameters in CAD.

πŸ”§ Assembly order and tolerances

Patterns combine, and so do their tolerances. A box with a screw lid, an inner tray and a drawer stacks the errors of all parts: if each has Β±0.15 mm, the stack can reach Β±0.45 mm. Fix this by choosing one reference face per assembly, designing fits at the end of the chain, and adding slotted holes or oversize clearances for the last component to be fitted. The rules of tolerance stack-up are in Tolerances & fits. Plan the assembly order too: a captive nut must be inserted before the lid is closed, a pin before the hinge knuckle's second half and a magnet before the cover plate; otherwise the part cannot be built and no tolerance fixes it. Draw an exploded view and number the parts in the order they are fitted.

Tip

Add a visible alignment mark (a small triangle, 0.6 mm raised) on parts that fit only one way. It prevents wrong assembly and takes two minutes to add.

πŸ”° Choosing a pattern

Ask three questions: what moves, what is loaded, how often is it opened. The table links each need to a pattern and to the rule page with the maths.

NeedFirst choiceAlternativeAvoid
Opens rarelySnap lid (1)Press-fit lidFine thread
Opens oftenScrew lid with inserts (2)Hinge box (4)Self-tapping in PLA, 10+ cycles
RotatesSteel axle in a 0.2 mm slip fitPrinted pin (4)Printed bearing under load (19)
Springs backFlexure in PETG (14)Metal springFlexure in PLA
Holds a toolPocket plate (7)Magnetic mount (10)Thin wall pockets
Too big for the bedSplit with pins (28, 23)Dovetail key (23)Flat butt joint
Must be stiffGusset bracket (22)Rib-grid (see ribs)Infill 100 % in a thin wall
WeatherproofOutdoor housing (30)Gasketed jar (5)PLA, no drain

Combining patterns: a worked example

A weatherproof sensor box for a garden uses at least five patterns. The housing is a screw-lid enclosure (2) with a gasketed lid, in ASA (30). The board sits on standoffs (3) with vent slots that face down and are covered by a drip edge. The box hangs on a wall by a keyhole slot (9) on the back. The cable leaves through a clip-style grommet (6). Its lid screws use heat-set inserts. At each junction the rules from Joints & fasteners apply: fillets β‰₯ 1 mm, bosses with ribs, and walls of 2.4 mm. Writing the box as one parametric model (inner size, wall, screw size, clearance) means a bigger board needs one number change, not a redesign.

Need moves? β†’ hinge / gear / cam loaded? β†’ gusset / rib / insert opened often? β†’ screws / inserts Then check 1. Orientation: layers along the load2. Overhangs ≀ 45Β° or a bridge ≀ 10 mm3. Clearances from your coupon, not from this page4. Test slice of the critical area5. Material for the environmentWrite the parameters down before you model.
Figure 31. A quick decision flow: what moves, what is loaded and how often it is opened decide the pattern; the checklist keeps it printable.

⚠️ Anti-patterns to avoid

Do

  • Reuse a tested pattern and change parameters
  • Print a test slice of every fit
  • Fillet inside corners, chamfer bottom edges
  • Put metal where the load is (inserts, pins, rods)
  • Record dimensions in a parameter table

Don't

  • Make a snap-fit in PLA that has to open 100 times
  • Put a thread axis horizontal and expect it to last
  • Print a bearing for a real load
  • Copy a pattern at a different scale without recalculating the strain
  • Mix tolerances: one clearance for all fits
Safety

Printed parts must not be the only thing preventing injury: locks, climbing gear, pressure vessels, mains-electrical insulation and child-safety items need certified products. Use patterns here for convenience and hobby parts, and keep mains voltage in certified enclosures.

Key takeaways

Next: Parametric CAD workflow turns these patterns into reusable, adjustable models. For the maths behind each joint see Joints & fasteners, and practice with the Level 2 exercises.