// allviews holder view2 include ray=32; height=5*25/8; // 5/8 inch module screwlock(){ nutw=9; w=nutw+4; d=5; translate([-w/2,2,0]) difference(){ cube([w,d,height]); union(){ translate([2,1,5]) cube([nutw,3,20]); } } } module holder(){ difference(){ union(){ difference(){ union(){ cylinder(r=ray,h=height,$fn=60); } union(){ cylinder(r=ray-3,h=height,$fn=40); } } intersection(){ cylinder(r=ray,h=2,$fn=60); translate([-ray,-10,0]) cube([2*ray,20,2]); } rayl=ray; translate([0,-rayl,0]) screwlock(); translate([0,rayl-9,0]) screwlock(); } translate([0,ray+10,10]) rotate([90,0,0]) cylinder(r=2,h=2*ray+20,$fn=20); } } module view2(){ } if (view=="holder"){ holder(); }else if (view=="view2"){ view2(); }