Files
CAD-bestanden/multiconnect/connectorHoleLockingPin.py
2024-12-21 17:18:30 +01:00

38 lines
902 B
Python

from ocp_vscode import *
from build123d import *
set_port(3939)
tt = thickness_toolboard = 0.8
lsp = length_straight_part = 5.0
tb = thickness_bevel = 2.5
teub = thickness_edge_until_board = 0.5
wbs = width_board_side = 15.0
ttc = thickness_total_connector = 4.0
cw = clamp_width = 9.8
rc = rotation_clamp = 45.0
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_step(clampLock.part, "connectorHoleClampLock.step")
show_all()