eerste start met HoleClamp

This commit is contained in:
2024-12-20 22:33:18 +01:00
parent 771c1a0e71
commit 5ef2b77e43
5 changed files with 635 additions and 240 deletions

View File

@@ -1,10 +1,10 @@
epfrom ocp_vscode import *
from ocp_vscode import *
from build123d import *
set_port(3939)
tt = thickness_toolboard = 0.8
wc = width_connector = 20.0
lsp = length_straight_part = 5.0
tce = thickness_connector_edge = 1.0
tb = thickness_bevel = 2.5
teub = thickness_edge_until_board = 0.5
wbs = width_board_side = 15.0
@@ -12,6 +12,7 @@ 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
with BuildPart() as connector:
with BuildSketch() as connector_sk:
@@ -22,6 +23,10 @@ with BuildPart() as connector:
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]):
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)
extrude(amount = -dcr, mode=Mode.SUBTRACT)
export_step(connector.part, "connectorWithHole.step")
export_stl(connector.part, "connectorWithHole.stl")
show_all()