Files
CAD-bestanden/KennedyPegboard/Toolholders/multiconnect/test.py
2025-11-05 19:39:22 +01:00

40 lines
947 B
Python

from ocp_vscode import *
from build123d import *
set_port(3939)
# Set the number of clips horizontal:
number_clips_horizontal = 3
number_clips_vertical = 3
# Distance hart to hart holes pegboard 1-1/2" or about 38.1 mm
hdhh = hole_distance_hart_to_hart = 38.1
wmh = width_multiconnector_hole = 20.3
dmh = depth_multiconnector_hole = 4.15
dbr = depth_big_round = 1.2121
dsr = depth_small_round = 0.4379
db = depth_bevel = 2.5
el = extrusion_length = 10.0
pts = [
(0, 0),
((wmh+4)/2, 0),
(((wmh+4)/2), dmh+2),
(((wmh+4)/2)-db-2, dmh+2),
(((wmh+4)/2)-db-2, dmh+2-dsr),
((wmh+4)/2-2, dbr+2),
((wmh+4)/2-2, 2),
(0, 2),
(0, 0)
]
first_part = Polyline(pts)
with BuildPart() as backSlot:
with BuildSketch() as sk:
with GridLocations(x_spacing = hdhh, y_spacing = hdhh, x_count = number_clips_horizontal, y_count = number_clips_vertical):
Rectangle(2,4)
extrude(amount = 6)
show_all()