kleine aanpassingen
This commit is contained in:
@@ -7,6 +7,7 @@ set_port(3939)
|
|||||||
number_clips_horizontal = 3
|
number_clips_horizontal = 3
|
||||||
number_clips_vertical = 3
|
number_clips_vertical = 3
|
||||||
|
|
||||||
|
|
||||||
# Distance hart to hart holes pegboard 1-1/2" or about 38.1 mm
|
# Distance hart to hart holes pegboard 1-1/2" or about 38.1 mm
|
||||||
hdhh = hole_distance_hart_to_hart = 38.1
|
hdhh = hole_distance_hart_to_hart = 38.1
|
||||||
wmh = width_multiconnector_hole = 20.3
|
wmh = width_multiconnector_hole = 20.3
|
||||||
@@ -37,30 +38,49 @@ def one_clip():
|
|||||||
Polyline(pts)
|
Polyline(pts)
|
||||||
make_face()
|
make_face()
|
||||||
revolve(revolution_arc=180.0, axis=Axis.Z)
|
revolve(revolution_arc=180.0, axis=Axis.Z)
|
||||||
return backSlot.part
|
# Add a straight part to it
|
||||||
|
|
||||||
# Add a straight part to it
|
|
||||||
def extrusion_clip():
|
|
||||||
with BuildPart() as extrusion:
|
|
||||||
with BuildSketch(Plane.XZ) as sk_extrusion:
|
with BuildSketch(Plane.XZ) as sk_extrusion:
|
||||||
with BuildLine(Plane.XZ) as ln_extrusion:
|
with BuildLine(Plane.XZ) as ln_extrusion:
|
||||||
Polyline(pts)
|
Polyline(pts)
|
||||||
make_face()
|
make_face()
|
||||||
mirror(about=Plane.YZ)
|
mirror(about=Plane.YZ)
|
||||||
extrude(amount = el)
|
extrude(amount = el)
|
||||||
return extrusion.part
|
return backSlot.part
|
||||||
|
|
||||||
|
def connection_clip():
|
||||||
|
with BuildPart() as connection:
|
||||||
|
with BuildSketch(Plane.XZ) as sk_connection:
|
||||||
|
Rectangle(wmh+4, 2)
|
||||||
|
extrude(amount = 30)
|
||||||
|
return connection.part
|
||||||
|
|
||||||
# Generate a raster of clips
|
# Generate a raster of clips
|
||||||
with BuildPart() as raster:
|
with BuildPart() as raster:
|
||||||
for i in range(number_clips_horizontal):
|
# clip = one_clip()
|
||||||
for j in range(number_clips_vertical):
|
# one_connection = connection_clip()
|
||||||
|
# for i in range(number_clips_horizontal):
|
||||||
|
# for j in range(number_clips_vertical):
|
||||||
# Put the clips on the right locations
|
# Put the clips on the right locations
|
||||||
with Locations((i * hdhh, j * hdhh, 0)):
|
# with Locations((i * hdhh, j * hdhh, 0)):
|
||||||
clip = one_clip()
|
# with GridLocations(x_spacing = hdhh, y_spacing = hdhh, x_count = number_clips_horizontal, y_count = number_clips_vertical):
|
||||||
add(clip)
|
with GridLocations(x_spacing = hdhh, y_spacing = hdhh, x_count = number_clips_horizontal, y_count = number_clips_vertical):
|
||||||
# Connect the clips together
|
# Make a polyline sketch and revolve it 180 degrees
|
||||||
one_extrusion = extrusion_clip()
|
with BuildSketch(Plane.XZ) as sk_backSlot:
|
||||||
add(one_extrusion)
|
with BuildLine(Plane.XZ) as ln_backSlot:
|
||||||
|
Polyline(pts)
|
||||||
|
make_face()
|
||||||
|
revolve(revolution_arc=180.0, axis=Axis.Z)
|
||||||
|
# Add a straight part to it
|
||||||
|
with BuildSketch(Plane.XZ) as sk_extrusion:
|
||||||
|
with BuildLine(Plane.XZ) as ln_extrusion:
|
||||||
|
Polyline(pts)
|
||||||
|
make_face()
|
||||||
|
mirror(about=Plane.YZ)
|
||||||
|
extrude(amount = el)
|
||||||
|
# Connect the clips together
|
||||||
|
# with Locations((i * hdhh, j * hdhh - el, 1)):
|
||||||
|
# connection_clip()
|
||||||
|
# print(clip, one_connection)
|
||||||
|
|
||||||
#export_stl(backSlot.part, "backSlot.stl")
|
#export_stl(backSlot.part, "backSlot.stl")
|
||||||
#export_step(backSlot.part, "backSlot.step")
|
#export_step(backSlot.part, "backSlot.step")
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
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)
|
||||||
|
]
|
||||||
|
|
||||||
|
# Make one basic connector
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#export_stl(backSlot.part, "backSlot_algebra.stl")
|
||||||
|
#export_step(backSlot.part, "backSlot_algebra.step")
|
||||||
|
show_all()
|
||||||
@@ -48,13 +48,20 @@ def one_clip():
|
|||||||
|
|
||||||
# Generate a raster of clips
|
# Generate a raster of clips
|
||||||
with BuildPart() as raster:
|
with BuildPart() as raster:
|
||||||
last_clip = None
|
with BuildSketch(Plane.XY.rotated((90, 0, 0))) as sk_backSlot:
|
||||||
for i in range(number_clips_horizontal):
|
with GridLocations(x_spacing = hdhh, y_spacing = hdhh, x_count = number_clips_horizontal, y_count = number_clips_vertical):
|
||||||
for j in range(number_clips_vertical):
|
# Make a polyline sketch and revolve it 180 degrees
|
||||||
clip = one_clip()
|
with BuildLine() as ln_backSlot:
|
||||||
# Put the clips on the right locations
|
Polyline(pts)
|
||||||
with Locations((i * hdhh, j * hdhh, 0)):
|
make_face()
|
||||||
add(clip)
|
revolve(revolution_arc=180.0, axis=Axis.Z)
|
||||||
|
# Add a straight part to it
|
||||||
|
with BuildSketch(Plane.XZ) as sk_extrusion:
|
||||||
|
with BuildLine(Plane.XZ) as ln_extrusion:
|
||||||
|
Polyline(pts)
|
||||||
|
make_face()
|
||||||
|
mirror(about=Plane.YZ)
|
||||||
|
extrude(amount = el)
|
||||||
|
|
||||||
#export_stl(backSlot.part, "backSlot.stl")
|
#export_stl(backSlot.part, "backSlot.stl")
|
||||||
show_all()
|
show_all()
|
||||||
|
|||||||
39
KennedyPegboard/Toolholders/multiconnect/test.py
Normal file
39
KennedyPegboard/Toolholders/multiconnect/test.py
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
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()
|
||||||
Binary file not shown.
19
batterijhouder/fietsverlichtingEmmen/batterijX4.py
Normal file
19
batterijhouder/fietsverlichtingEmmen/batterijX4.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
from ocp_vscode import *
|
||||||
|
from build123 import *
|
||||||
|
|
||||||
|
set_port(3939)
|
||||||
|
|
||||||
|
l = 31
|
||||||
|
b = 29
|
||||||
|
h = 58
|
||||||
|
|
||||||
|
with BuildPart() as box:
|
||||||
|
with BuildSketch() as bodem:
|
||||||
|
Rectangle(l+2.4, b+2.4)
|
||||||
|
fillet(bodem.vertices(), radius=10)
|
||||||
|
extrude(amount=4)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
show_all()
|
||||||
Reference in New Issue
Block a user