OpenSCAD Parametric Mounting Plate example

OpenSCAD examples
/

Parametric Mounting Plate

Beginner

Practical parts

Lesson 1 of 22

Make a useful first part by subtracting four clearance holes from a rounded plate.

Try changing:

steplengthwidththicknesshole_diameteredge_distancecorner_radius

Low compile complexity. Four cylinders and one 2D offset; a good first compile.

Visual walkthrough: change step in the workspace Parameters panel to compile each construction stage.

How this model works

The 2D offset rounds a smaller rectangle without changing the requested overall length and width. linear_extrude adds thickness; the hole cutters extend beyond both faces so subtraction has no coincident end faces. Edge distance is measured from each outside edge to a hole center. Assertions protect corner and hole clearance. Geometry uses a millimeter convention, not a manufacturing guarantee.

  1. Make the blank · Blank

    Inspect the uncut rounded plate and its overall dimensions.

  2. Inspect the cutters · Cutters

    Show only the four cylinders to be removed. Their extra height guarantees complete through-holes; they are construction geometry, not the finished part.

  3. Subtract the holes · Finished

    Remove all four cutters from the same blank, leaving the finished mounting plate.

main.scad

Loading draft

Ctrl/Cmd+Enter or F5: preview · F6: render · Ctrl/Cmd+F: search · Ctrl+Space: complete · Tab: leave editor

0 messages

Make it your own

Set the plate to 90 × 45 mm with 6 mm holes. Measure the hole spacing: it should be length minus twice edge_distance. Then add a fifth hole at the center.

Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.

FAQ