Skip to content

Commit

Permalink
Fix bug introduced in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
furbrain committed Jul 24, 2024
1 parent a3d2b21 commit 547d735
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions case/export_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
time.sleep(3)
stl_parts = ("shim", "cap", "cap with vanes", "mount", "shell", "bezel")
os.makedirs("build/abs/",exist_ok=True)
#for part_name in stl_parts:
# print(f"Exporting {part_name}")
# part = doc.findObjects(Label=f"^{part_name}$")[0]
# Mesh.export([part],f"build/abs/{part_name}.stl")
for part_name in stl_parts:
print(f"Exporting {part_name}")
part = doc.findObjects(Label=f"^{part_name}$")[0]
Mesh.export([part],f"build/abs/{part_name}.stl")

drawings = doc.findObjects("TechDraw::DrawPage")
drawing_stls = []
Expand Down

0 comments on commit 547d735

Please sign in to comment.