Salome HOME
using a better solution to do compare doubles for shape physical properties
[modules/shaper.git] / src / ExchangePlugin / doc / examples / importStep.py
1 from salome.shaper import model
2 import os
3
4 model.begin()
5 file_path = os.path.join(os.getenv("DATA_DIR"),"Shapes","Step","black_and_white.step")
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Import_1 = model.addImportSTEP(Part_1_doc,file_path, True, True, True)
10 model.do()
11 model.end()