Klemmen toegevoegd

This commit is contained in:
2024-12-21 17:18:30 +01:00
parent 5ef2b77e43
commit 01ecf58ebc
6 changed files with 2446 additions and 7 deletions

View File

@@ -24,7 +24,8 @@ lp6 = line_point_6 = ttc+tt
pts = [
(0, 0),
(cw, 0),
(cw, dc),
(cw, dc-0.5),
(cw-1.2, dc),
(lp5, dc),
(lp5, (dc+tt+ttc-dcs)),
(lp5+(5/2), (dc+tt+ttc-dcs)),
@@ -39,5 +40,7 @@ with BuildPart() as clamp:
Polyline(pts)
make_face()
extrude(amount = cw)
fillet(clamp.edges(), radius = 0.2)
export_stl(clamp.part, "connectorHoleClamp.stl")
show_all()

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -0,0 +1,37 @@
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()

View File

@@ -4,15 +4,12 @@ set_port(3939)
tt = thickness_toolboard = 0.8
wc = width_connector = 20.0
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
dcr = depth_clamp_room = 1.6
lcr = length_clamp_room = cw+5
with BuildPart() as connector:
with BuildSketch() as connector_sk:
@@ -24,9 +21,9 @@ with BuildPart() as connector:
Rectangle(cw+0.1, cw+0.1)
extrude(amount = -ttc, mode=Mode.SUBTRACT)
with BuildSketch(connector.faces().sort_by(Axis.Z)[0]):
Rectangle(cw+5, cw+0.1)
Rectangle(lcr, cw+0.1)
extrude(amount = -dcr, mode=Mode.SUBTRACT)
export_stl(connector.part, "connectorWithHole.stl")
#export_stl(connector.part, "connectorWithHole.stl")
show_all()