refactor: make the mop scraper holder a function

This commit is contained in:
2026-07-19 23:00:31 -05:00
parent 1ede942327
commit 978c563b7c
+12 -8
View File
@@ -1,19 +1,20 @@
# pyright: reportUnusedCallResult=false, reportWildcardImportFromLibrary=false
from build123d import *
center_thickness = 10
def build_mop_scraper_holder():
center_thickness = 10
mop_diameter = 23.7
mop_arc_size = 220
mop_diameter = 23.7
mop_arc_size = 220
scraper_diameter = 20.55
scraper_arc_size = mop_arc_size
scraper_diameter = 20.55
scraper_arc_size = mop_arc_size
arms_thickness = 3
arms_thickness = 3
clamp_length = 30
clamp_length = 30
with BuildPart() as mop_scraper_holder:
with BuildPart() as mop_scraper_holder:
with BuildSketch() as profile:
with BuildLine() as connecting_outline:
arc_s = 170
@@ -43,5 +44,8 @@ with BuildPart() as mop_scraper_holder:
with Locations(Plane((screw_pos.X, screw_pos.Y, 0)).rotated((-90, 0, 0))):
CounterBoreHole(3 / 2, 5.6 / 2, 3.2)
return mop_scraper_holder
mop_scraper_holder = build_mop_scraper_holder()
assert mop_scraper_holder.part is not None
export_step(mop_scraper_holder.part, "mop_scraper_holder.step")