Praca nad uchwycikiem

This commit is contained in:
Rafał Paluch 2025-11-22 20:32:27 +01:00
parent 7a0aca41f2
commit db725417ac
2 changed files with 55 additions and 3 deletions

Binary file not shown.

View File

@ -46,8 +46,36 @@ sz5o = 20.400
offset_x5 = 8.910 offset_x5 = 8.910
offset_y5 = 16.720 offset_y5 = 16.720
# with Locations((front_left_edge_vertex.X + 0, 0)) # otworek 6
dl6o = 10.200
sz6o = 19.600
offset_x6 = 27.160
offset_y6 = 15.620
# otworek 7
dl7o = 43.200
sz7o = 20.200
offset_x7 = 63.660
offset_y7 = 17.820
# mini_uchwytik
mini_udl = 10
mini_usz = 8.500
mini_ugr = 4
# wyciecie_mini
wyc_dl = 3
wyc_sz = 3
wyc_gr = 4.50
# podstawa_uchwyciku
pods_dl = 12.820
pods_sz = 13.400
pods_gr = 1.7
offset_podstawy = 1.410
przesuniecie_uchwyciku = 17.607
with BuildPart() as box: with BuildPart() as box:
with BuildSketch() as s1: with BuildSketch() as s1:
@ -75,10 +103,34 @@ with BuildPart() as box:
back = box.faces().sort_by(Axis.Y)[-1] back = box.faces().sort_by(Axis.Y)[-1]
back_left_edge_vertex = box.faces().sort_by(Axis.Y)[-1].edges().filter_by(Axis.Z).sort_by(Axis.X)[-1].vertices()[0] back_left_edge_vertex = box.faces().sort_by(Axis.Y)[-1].edges().filter_by(Axis.Z).sort_by(Axis.X)[-1].vertices()[0]
with BuildSketch(back) as s6: with BuildSketch(back) as s6:
with Locations((back_left_edge_vertex.X - offset_x5, +offset_y5)): with Locations((back_left_edge_vertex.X - offset_x5, + offset_y5)):
Rectangle(dl5o, sz5o, align=(Align.MAX, Align.MAX)) Rectangle(dl5o, sz5o, align=(Align.MAX, Align.MAX))
extrude(amount=-scianka, mode=Mode.SUBTRACT) extrude(amount=-scianka, mode=Mode.SUBTRACT)
with BuildSketch(back) as s7:
with Locations((back_left_edge_vertex.X - offset_x6 - 12.450, + offset_y6)):
with GridLocations(12.450, 0, 3, 1):
Rectangle(dl6o, sz6o, align=(Align.MAX, Align.MAX))
extrude(amount=-scianka, mode=Mode.SUBTRACT)
with BuildSketch(back) as s8:
with Locations((back_left_edge_vertex.X - offset_x7, + offset_y7)):
Rectangle(dl7o, sz7o, align=(Align.MAX, Align.MAX))
extrude(amount=-scianka, mode=Mode.SUBTRACT)
bok = box.faces().sort_by(Axis.X)[-1]
with BuildSketch(bok) as uchwycik:
Rectangle(mini_udl, mini_usz)
u1 = extrude(amount=mini_ugr)
u1_face = u1.faces().sort_by(Axis.Y)[0]
u2_face = u1.faces().sort_by(Axis.X)[-1]
with BuildSketch(u1_face) as wyc1:
with Locations((-2.750, -0.5)):
Rectangle(wyc_dl, wyc_sz)
mirror(about=Plane.YZ)
extrude(amount=-wyc_gr, mode=Mode.SUBTRACT)
with BuildSketch(u2_face) as uchwycik_podstawa:
with Locations((-offset_podstawy, 0)):
Rectangle(pods_dl, pods_sz)
extrude(amount=pods_gr)
# show_all() # show_all()
show(box, orange, s6) show(box, orange, uchwycik_podstawa)