]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #20600 EDF 22741 - export XAO
authorjfa <jfa@opencascade.com>
Thu, 4 Feb 2021 13:29:52 +0000 (16:29 +0300)
committerjfa <jfa@opencascade.com>
Thu, 4 Feb 2021 13:29:52 +0000 (16:29 +0300)
src/ExchangePlugin/doc/examples/export.py

index 1f9b7c2b5e125854519004e7cb67e49a3c5f198e..2a807f26331339a59f3bc0dcc1abebc0e3ef35f6 100644 (file)
@@ -9,5 +9,9 @@ Part_1_doc = Part_1.document()
 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
 Export_1 = model.exportToFile(Part_1_doc, file_path,
                               [model.selection("SOLID", "Box_1_1")])
+
+file_xao = os.path.join(os.getenv("DATA_DIR"), "test.xao")
+Export_2 = model.exportToXAO(Part_1_doc, file_xao,
+                             model.selection("SOLID", "Box_1_1"), "author", "box")
 model.do()
 model.end()