1 from salome.shaper import model
5 file_path = os.path.join(os.getenv("DATA_DIR"), "test.stl")
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
10 Export_1 = model.exportToSTL(Part_1_doc, file_path,
11 model.selection("SOLID", "Box_1_1"),0.0001,0.5,True,False)