rename en clamp iets langer gemaakt
This commit is contained in:
36
KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py
Normal file
36
KennedyPegboard/Toolholders/multiconnect/basicBackSlot.py
Normal file
@@ -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()
|
||||
@@ -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()
|
||||
@@ -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()
|
||||
BIN
KennedyPegboard/multiconnect/clampLock.stl
Normal file
BIN
KennedyPegboard/multiconnect/clampLock.stl
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user