diff --git a/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py b/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py new file mode 100644 index 0000000..aeb0702 --- /dev/null +++ b/KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py @@ -0,0 +1,36 @@ +from ocp_vscode import * +from build123d import * + +set_port(3939) + +# Distance hart to hart holes pegboard 1-1/2" or about 38.1 mm +hdhh = hole_distance_hart_to_hart = 38.1 +wmh = width_multiconnector_hole = 20.3 +dmh = depth_multiconnector_hole = 4.15 +dbr = depth_big_round = 1.2121 +dsr = depth_small_round = 0.4379 +db = depth_bevel = 2.5 + +# 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) + +show_all() diff --git a/KennedyPegboard/multiconnect/AlternativeIdeeen/basicBackSlot.py b/KennedyPegboard/multiconnect/AlternativeIdeeen/basicBackSlot.py deleted file mode 100644 index 38d8f8d..0000000 --- a/KennedyPegboard/multiconnect/AlternativeIdeeen/basicBackSlot.py +++ /dev/null @@ -1,35 +0,0 @@ -from ocp_vscode import * -from build123d import * - -set_port(3939) - -# Distance hart to hart holes pegboard 1-1/2" or about 38.1 mm -hdhh = hole_distance_hart_to_hart = 38.1 -wmh = width_multiconnector_hole = 20.3 -dmh = depth_multiconnector_hole = 4.15 -dbr = depth_big_round = 1.2121 -dsr = depth_small_round = 0.4379 -db = depth_bevel = 2.5 - -with BuildPart() as backSlot: -# Box(10, 5, 3) - with BuildSketch() as sk_backSlot: - Rectangle(10, 5) - extrude(amount = db) -#arrayOfEdges = backSlot.edges() -#edgs = backSlot.faces().sort_by(Axis.Z)[0].vertices().filter_by(Axis.X) -#fillet(edgs, 0.5) -#vertice = backSlot.vertices() -#for i, vertex in enumerate(vertice): -# print(f"Vertex {i}: {vertex}") -#edge_0_vertices = [v for v in edge.vertices()] -#for v in edge_0_vertices: -# print(f"Edge 0 vertex: {v}") -#face = backSlot.faces()[-1] -#for i, edge in enumerate(face.edges()): -# print(f"edgs {i}: {edge}") - - chamfer(backSlot.edges().group_by(Axis.Z)[0].sort_by(Axis.X)[0], length = 1, length2 = 3) - fillet(backSlot.edges(), 0.5) - -show_all() diff --git a/KennedyPegboard/multiconnect/connectorHoleLockingPin.py b/KennedyPegboard/multiconnect/clampLock.py similarity index 86% rename from KennedyPegboard/multiconnect/connectorHoleLockingPin.py rename to KennedyPegboard/multiconnect/clampLock.py index 5b36f83..d329e17 100644 --- a/KennedyPegboard/multiconnect/connectorHoleLockingPin.py +++ b/KennedyPegboard/multiconnect/clampLock.py @@ -6,8 +6,8 @@ set_port(3939) tt = thickness_toolboard = 2.0 ttc = thickness_total_connector = 4.0 -cw = clamp_width = 9.8 -dc = depth_clamp = 4.0 +cw = clamp_width = 9.6 +dc = depth_clamp = 6.0 dcs = depth_clamp_space = 1.6 tlp = thickness_locking_pin = cw*0.25 lcr = length_clamp_room = cw+5 @@ -30,5 +30,5 @@ with BuildPart() as clampLock: extrude(amount = cw) fillet(clampLock.edges(), radius = 0.2) -#export_stl(clampLock.part, "connectorHoleLockingPin.stl") +export_stl(clampLock.part, "clampLock.stl") show_all() diff --git a/KennedyPegboard/multiconnect/clampLock.stl b/KennedyPegboard/multiconnect/clampLock.stl new file mode 100644 index 0000000..8a505b9 Binary files /dev/null and b/KennedyPegboard/multiconnect/clampLock.stl differ diff --git a/KennedyPegboard/multiconnect/connectorWithClamp.py b/KennedyPegboard/multiconnect/connectorWithClamp.py index 5fc2ac4..0cccea0 100644 --- a/KennedyPegboard/multiconnect/connectorWithClamp.py +++ b/KennedyPegboard/multiconnect/connectorWithClamp.py @@ -11,7 +11,7 @@ tb = thickness_bevel = 2.5 teub = thickness_edge_until_board = 0.5 ttc = thickness_total_connector = 4.0 cw = clamp_width = 9.8 -tc = thickness_clamp = 4.0 +tc = thickness_clamp = 6.0 cbw = clamp_board_width = cw*2/3 dcr = depth_clamp_room = 1.8 # Made it a bit deeper so the securing pin stays beneath the surface lcr = length_clamp_room = cw*0.25+2.4 diff --git a/KennedyPegboard/multiconnect/connectorWithClamp.stl b/KennedyPegboard/multiconnect/connectorWithClamp.stl index a3db798..eb2ef75 100644 Binary files a/KennedyPegboard/multiconnect/connectorWithClamp.stl and b/KennedyPegboard/multiconnect/connectorWithClamp.stl differ