openscad-models/light-switches/gfci-paddle-switch-extended-2d.scad
Cal Corum 30c2e33e7e Add custom screw holes to extended GFCI plate
- Added outer screw holes: 2.68mm diameter, 0.25" (6.35mm) beyond main holes
- Main screw holes enlarged 40% (4.0mm → 5.6mm)
- Main screw holes changed to horizontal pill shape (14mm × 5.6mm)
- Updated 2D template SVG with matching holes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 17:48:14 -06:00

40 lines
1.3 KiB
OpenSCAD

// 2D projection for paper test fit
// Print this at 100% scale (no scaling)
include <BOSL2/std.scad>
plate_width = 153.0;
plate_height = 230.0;
plate_corner_radius = 3.0;
opening_width = 34.0;
opening_height = 67.0;
opening_corner_radius = 2.0;
// Main screw holes (pill-shaped, horizontal)
screw_hole_height = 5.6;
screw_hole_width = 14.0; // 250% of height
screw_hole_spacing = 83.3;
// Outer screw holes (circular, 0.25" beyond main holes)
outer_screw_hole_offset = 6.35; // mm (0.25 inches)
outer_screw_hole_diameter = 2.68; // mm (67% of original 4.0mm)
$fn = 64;
difference() {
rect([plate_width, plate_height], rounding=plate_corner_radius);
rect([opening_width, opening_height], rounding=opening_corner_radius);
// Main screw holes (pill-shaped)
translate([0, screw_hole_spacing/2])
rect([screw_hole_width, screw_hole_height], rounding=screw_hole_height/2);
translate([0, -screw_hole_spacing/2])
rect([screw_hole_width, screw_hole_height], rounding=screw_hole_height/2);
// Outer screw holes (circular)
translate([0, screw_hole_spacing/2 + outer_screw_hole_offset])
circle(d=outer_screw_hole_diameter);
translate([0, -screw_hole_spacing/2 - outer_screw_hole_offset])
circle(d=outer_screw_hole_diameter);
}