from salome.shaper import model
+import os
model.begin()
+file_path = os.path.join(os.getenv("DATA_DIR"), "test.step")
partSet = model.moduleDocument()
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
-Export_1 = model.exportToFile(Part_1_doc, "/dn48/newgeom/vsv/test.step",
+Export_1 = model.exportToFile(Part_1_doc, file_path,
[model.selection("SOLID", "Box_1_1")])
model.do()
model.end()
from salome.shaper import model
model.begin()
+file_path = os.path.join(os.getenv("DATA_DIR"), "test.stl")
partSet = model.moduleDocument()
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
-Export_1 = model.exportToSTL(Part_1_doc, "/dn48/newgeom/vsv/test.stl",
- [model.selection("SOLID", "Box_1_1")],0.0001,0.5,"True","False")
+Export_1 = model.exportToSTL(Part_1_doc, file_path,
+ model.selection("SOLID", "Box_1_1"),0.0001,0.5,True,False)
model.do()
model.end()
:param part: The current part object
:param string: The file name
- :param selectedShape: An exporting object
- :param relative: value of the relative deflection
- :param absolute: value of the absolute deflection
- :param isRelative: indicate if use deflection relative
- :param isASCII: indicate if the file is in ASCII type
+ :param object: An exporting object
+ :param real: value of the relative deflection
+ :param real: value of the absolute deflection
+ :param boolean: indicate if use deflection relative
+ :param boolean: indicate if the file is in ASCII type
Result
""""""