From d6f26ae90ddd182644643def551030f1fc767a6f Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Wed, 16 May 2018 16:08:05 -0400 Subject: [PATCH] Parametrize the box fixation tabs This is the last part to make the box fully scalable. Now if you double every parameter, the box doubles in all dimensions. The panel features are not changed, however. That's up to you to fix. The tab cutouts are now scaled off of the screw hole size, since that fixes the diameter of the tab. I've also added an OuterMargin which adjusts the spacing you need between the tab and the box wall. This is a property of your printer, and shouldn't be changed when you scale other aspects of the box. I might base other dimensions, like the panel gap on this value as well. --- files/U_Box_V104_Test_Cleaned.scad | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/files/U_Box_V104_Test_Cleaned.scad b/files/U_Box_V104_Test_Cleaned.scad index ba66b49..3ebacc7 100644 --- a/files/U_Box_V104_Test_Cleaned.scad +++ b/files/U_Box_V104_Test_Cleaned.scad @@ -40,6 +40,8 @@ Round = 1; // [0:No, 1:Yes] PanelGap = 0.9; // - Printer margin around interior cutouts CutoutMargin = 0.6; +// - Printer margin around exterior edges +OuterMargin = 0.2; // Pieds PCB - PCB feet (x4) PCBFeet = 1; // [0:No, 1:Yes] // - Decorations to ventilation holes @@ -229,13 +231,13 @@ module Coque() { //Coque - Shell } } } - translate([0, Thick*2 + Filet, Height/2 - 57]) { - rotate([45, 0, 0]) { - cube([Length, 40, 40]); + translate([0, Thick*2, Height/2 - ScrewHole]) { + rotate([180 + 45, 0, 0]) { + cube([Length, 5*ScrewHole, 3*ScrewHole]); } } translate([0, 0, Height/2]) { - cube([Length, Thick + 0.16, 10]); + cube([Length, Thick + OuterMargin, 4*ScrewHole]); } } //Fin fixation box legs } // End union for box and legs