Compare commits

...
5 Commits
2 changed files with 14 additions and 4 deletions
+12 -4
View File
@@ -75,8 +75,12 @@ def build_drive_shaft_mount():
mirror(about=Plane.XY) mirror(about=Plane.XY)
with Locations((0, bearing_offset, drive_shaft_mount.faces().sort_by(Axis.Z)[-1].center().Z)): with Locations((0, bearing_offset, drive_shaft_mount.faces().sort_by(Axis.Z)[-1].center().Z)):
Hole(bearing_diameter / 2, (thickness / 2) + (bearing_height / 2))
Hole(shaft_clearance_diameter / 2, (thickness / 2) - (bearing_height / 2)) Hole(shaft_clearance_diameter / 2, (thickness / 2) - (bearing_height / 2))
Hole(bearing_diameter / 2, (thickness / 2) + (bearing_height / 2))
# this is a seem channel
with BuildSketch(Location((0, bearing_offset + bearing_diameter / 2, drive_shaft_mount.faces().sort_by(Axis.Z)[-1].center().Z))):
Triangle(A=90, b=1, c=1)
extrude(amount=-((thickness / 2) + (bearing_height / 2)), mode=Mode.SUBTRACT)
Box(core_width + (screw_blocks_width * 2), track_width, track_height, (90, 0, 0), (Align.CENTER, Align.CENTER, Align.MIN)) Box(core_width + (screw_blocks_width * 2), track_width, track_height, (90, 0, 0), (Align.CENTER, Align.CENTER, Align.MIN))
@@ -118,8 +122,12 @@ def build_drive_shaft_bar_adapter():
extrude(amount=height - thickness, mode=Mode.SUBTRACT) extrude(amount=height - thickness, mode=Mode.SUBTRACT)
# extrusion screw holes # extrusion screw holes
with Locations((0, 0, height - ext_screw_hole_offset)): screws_origin = Location((0, 0, height - ext_screw_hole_offset))
with PolarLocations(4, 4): with Locations(screws_origin):
with BuildPart(screws_origin, mode=Mode.SUBTRACT) as ext_track_cut_out:
Box(ext_size, ext_size, ext_screw_hole_diam + 8)
chamfer(ext_track_cut_out.edges(), 3)
with PolarLocations(0, 4):
with Locations(Rotation(0, 90, 0)): with Locations(Rotation(0, 90, 0)):
Hole(ext_screw_hole_diam / 2) Hole(ext_screw_hole_diam / 2)
@@ -129,7 +137,7 @@ def build_drive_shaft_bar_adapter():
with Locations((-l, -l), (-l, l), (l, -l), (l, l)): with Locations((-l, -l), (-l, l), (l, -l), (l, l)):
CounterBoreHole(shaft_hub_screw_diam / 2, shaft_hub_screw_head_diam / 2, shaft_hub_screw_head_depth, thickness + shaft_hub_screw_depth) CounterBoreHole(shaft_hub_screw_diam / 2, shaft_hub_screw_head_diam / 2, shaft_hub_screw_head_depth, thickness + shaft_hub_screw_depth)
with Locations(drive_shaft_bar_adapter.faces().sort_by(Axis.Z)[0].center()): with Locations(drive_shaft_bar_adapter.faces().sort_by(Axis.Z)[0].center()):
Hole(shaft_hub_bore_diam / 2) Hole((shaft_hub_bore_diam + 0.5) / 2)
Hole(shaft_hub_center_diam / 2, shaft_hub_center_depth) Hole(shaft_hub_center_diam / 2, shaft_hub_center_depth)
return drive_shaft_bar_adapter return drive_shaft_bar_adapter
+2
View File
@@ -43,6 +43,8 @@
enable = true; enable = true;
builder = ./cad/build.py; builder = ./cad/build.py;
outputName = "cover-theif-3dfiles";
devShell.name = "cad"; devShell.name = "cad";
package.name = "3dfiles"; package.name = "3dfiles";
}; };