Tuesday, March 19, 2019

OpenSCAD 3D printed BMW e46 brake line hex nut for brake pipe bracket

Replace snapped BMW 318i e46 ABS hex nuts with a 3D printed one. Use proper automotive filament.

bmwhexnut();
 
module bmwhexnut(){
    difference(){
        outercylinders();
        cutouts();
    }
}

module outercylinders(){
    translate([0, 0, 0]) cylinder(r=6,h=4.35,$fn=80);
    translate([0, 0, 0]) cylinder(r=4.4,h=19.50,$fn=80);   
}

module cutouts(){
    rotate([0,0,90]) translate([0, 0, 0]) cylinder(r=3.5,h=3,$fn=6);
    cylinder(r=2.25,h=50,$fn=80);
    for(i=[0:8]){
        rotate([0,0,i*45]) translate([2.25,0,0]) cube([1.25,1,50],true); 
    }
}