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

36 lines
790 B
Python

from ocp_vscode import *
from build123d import *
set_port(3939)
tt = thickness_toolboard = 2.0
ttc = thickness_total_connector = 4.0
bh = board_hole = 9.8
dc = depth_clamp = 4.0
dcs = depth_clamp_space = 1.6
lcr = length_clamp_room = bh+5
tc = thickness_clamp = bh*0.75
pts = [
(0, 0),
(bh, 0),
(bh, dc-0.5),
(bh-1.2, dc),
(tc, dc),
(tc, (dc+tt+ttc-dcs)),
(tc+2.5, (dc+tt+ttc-dcs)),
(tc+2.5, (dc+tt+ttc)),
(0, (dc+tt+ttc)),
(0, 0)
]
with BuildPart() as clamp:
with BuildSketch() as sk_clamp:
with BuildLine() as ln_clamp:
Polyline(pts)
make_face()
extrude(amount = bh)
fillet(clamp.edges(), radius = 0.2)
#export_stl(clamp.part, "connectorHoleClamp.stl")
show_all()