diff --git a/KennedyPegboard/Toolholders/multiconnect/backSlot.stl b/KennedyPegboard/Toolholders/multiconnect/backSlot.stl new file mode 100644 index 0000000..43c5b5d Binary files /dev/null and b/KennedyPegboard/Toolholders/multiconnect/backSlot.stl differ diff --git a/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py b/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py index aeb0702..5c63030 100644 --- a/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py +++ b/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py @@ -11,26 +11,32 @@ dbr = depth_big_round = 1.2121 dsr = depth_small_round = 0.4379 db = depth_bevel = 2.5 +pts = [ + (0, 0), + ((wmh+4)/2, 0), + (((wmh+4)/2), dmh+2), + (((wmh+4)/2)-db-2, dmh+2), + (((wmh+4)/2)-db-2, dmh+2-dsr), + ((wmh+4)/2-2, dbr+2), + ((wmh+4)/2-2, 2), + (0, 2) +] + # Make one basic connector with BuildPart() as backSlot: # Make a polyline sketch and revolve it 180 degrees with BuildSketch() as sk_backSlot: with BuildLine() as ln_backSlot: - pts = [ - (0, 0), - ((wmh+4)/2, 0), - (((wmh+4)/2), dmh+2), - (((wmh+4)/2)-db-2, dmh+2), - (((wmh+4)/2)-db-2, dmh+2-dsr), - ((wmh+4)/2-2, dbr+2), - ((wmh+4)/2-2, 2), - (0, 2) - ] Polyline(pts) make_face() revolve(revolution_arc=180.0, axis=Axis.Y) # Add a straight part to it - plane = (backSlot.faces(Select.LAST).sort_by(Axis.Z)[-1]) - extrude(plane, amount = 4) - + with BuildSketch() as sk_extrusion: + with BuildLine() as ln_extrusion: + Polyline(pts) + make_face() + mirror(about=Plane.YZ) + extrude(amount = 4) + +export_stl(backSlot.part, "backSlot.stl") show_all()