Files
CAD-bestanden/KennedyPegboard/multiconnect/connectorHoleLockingPin.py
2024-12-30 22:26:54 +01:00

35 lines
788 B
Python

from ocp_vscode import *
from build123d import *
set_port(3939)
# Kennedy Pegboard hole size = 10 x 10 mm
tt = thickness_toolboard = 2.0
ttc = thickness_total_connector = 4.0
cw = clamp_width = 9.8
dc = depth_clamp = 4.0
dcs = depth_clamp_space = 1.6
tlp = thickness_locking_pin = cw*0.25
lcr = length_clamp_room = cw+5
pts = [
(0, 0),
((tlp+2.5), 0),
((tlp+2.5), dcs),
(tlp, dcs),
(tlp, (dc+tt+ttc)),
(0, (dc+tt+ttc)),
(0, 0)
]
with BuildPart() as clampLock:
with BuildSketch() as sk_clampLock:
with BuildLine() as ln_clampLock:
Polyline(pts)
make_face()
extrude(amount = cw)
fillet(clampLock.edges(), radius = 0.2)
#export_stl(clampLock.part, "connectorHoleLockingPin.stl")
show_all()