10 lines
268 B
Plaintext
10 lines
268 B
Plaintext
import FreeCAD
|
|
import os.path
|
|
|
|
doc = FreeCAD.activeDocument()
|
|
base_filename = os.path.splitext(doc.FileName)[0]
|
|
|
|
for obj in doc.Objects:
|
|
if obj.ViewObject.Visibility:
|
|
filename = base_filename + "_" + obj.Label + ".stl"
|
|
obj.Shape.exportStl(filename) |