connector met gat
This commit is contained in:
27
multiconnect/connectorWithHole.py
Normal file
27
multiconnect/connectorWithHole.py
Normal file
@@ -0,0 +1,27 @@
|
||||
epfrom ocp_vscode import *
|
||||
from build123d import *
|
||||
set_port(3939)
|
||||
|
||||
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
|
||||
ttc = thickness_total_connector = 4.0
|
||||
cw = clamp_width = 9.8
|
||||
rc = rotation_clamp = 45.0
|
||||
dc = depth_clamp = 4.0
|
||||
|
||||
with BuildPart() as connector:
|
||||
with BuildSketch() as connector_sk:
|
||||
Circle(wc/2)
|
||||
extrude(amount = ttc-teub)
|
||||
chamfer(connector.edges().group_by(Axis.Z)[-1], length = tb, length2 = tb)
|
||||
extrude(connector.faces().sort_by(Axis.Z)[-1], amount = teub)
|
||||
with BuildSketch(connector.faces().sort_by(Axis.Z)[-1]):
|
||||
Rectangle(cw+0.1, cw+0.1)
|
||||
extrude(amount = -ttc, mode=Mode.SUBTRACT)
|
||||
|
||||
export_step(connector.part, "connectorWithHole.step")
|
||||
show_all()
|
||||
Reference in New Issue
Block a user