Make a mounting plate that adapts
Add mounting holes to your blank, then change their spacing while keeping enough material around them.
You needA browser for the dimension check; OpenSCAD for the downloadable model. No printer required.
Reference checked 9 September 2026. Authored exercise; no physical build result is claimed.
Understand the change
Reuse your first part
Keep the width, depth and thickness parameters. The new dimensions are an authored example; measure actual mounting points before adapting it to equipment.
Locate the holes
For an 80 mm plate with 50 mm spacing, hole centres are 15 and 65 mm from the left edge. Subtract half the hole diameter to find the remaining material.
Change the constraint
Increase spacing to 70 mm. The end margin becomes 3 mm. Try 74 mm: the assertion rejects the 1 mm margin. Make the plate wider instead of deleting the check.
Export and retain the decision
Render in OpenSCAD, inspect both holes through the full thickness and save the .scad file. Record the measured mounting spacing and the chosen hole allowance in your build notes.
A focused request to try
Use this with a suitable AI assistant. Its response will vary; compare it with the checks below.
Extend my dimensioned blank into an 80 × 30 × 4 mm plate with two 4 mm holes, 50 mm apart. Centre the holes along Y. Use difference, translate and cylinder. Require 3 mm of material between each hole and the nearest edge. Reject impossible dimensions. Explain what must change if spacing becomes 70 mm. Do not claim a load rating or printed fit.
Worked reference example
Read the example, predict one change, then check the result.
width = 80;
depth = 30;
thickness = 4;
hole_d = 4;
spacing = 50;
edge = 3;
$fn = 64;
assert(width > 0 && depth > 0 && thickness > 0);
assert(hole_d > 0 && spacing > hole_d);
assert((width-spacing-hole_d)/2 >= edge, "Increase width or reduce spacing");
assert((depth-hole_d)/2 >= edge, "Increase depth or reduce hole diameter");
difference() {
cube([width, depth, thickness]);
for (x = [(width-spacing)/2, (width+spacing)/2])
translate([x, depth/2, -1])
cylinder(h=thickness+2, d=hole_d);
}Adjust the mounting geometry
Change the inputs, inspect the derived dimensions and download the matching OpenSCAD model.
Inspect the updated OpenSCAD source
Check your result
- Default hole centres are 15 and 65 mm; end margins are 13 mm.
- 70 mm spacing leaves 3 mm at each end; 74 mm fails the authored margin rule.
- Changing thickness must not move either hole centre.
Where this can go wrong
The 3 mm margin is an exercise constraint, not a structural recommendation. Fastener clearance, material, loading and fabrication accuracy require separate decisions.
Go to the source
OpenSCAD primitives, transforms and Boolean operations. Confirm current tool instructions before using them.