]> SALOME platform Git repositories - modules/shaper.git/blob - src/ExchangePlugin/doc/examples/export.py
Salome HOME
Debug and documentation for STL export
[modules/shaper.git] / src / ExchangePlugin / doc / examples / export.py
1 from salome.shaper import model
2 import os 
3
4 model.begin()
5 file_path = os.path.join(os.getenv("DATA_DIR"), "test.step")
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.exportToFile(Part_1_doc, file_path,
11                               [model.selection("SOLID", "Box_1_1")])
12 model.do()
13 model.end()