From: jfa Date: Thu, 4 Feb 2021 13:29:52 +0000 (+0300) Subject: bos #20600 EDF 22741 - export XAO X-Git-Tag: V9_7_0a1~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c699b7f0efceb9e571ee6229124ad1da2e1f631d;p=modules%2Fshaper.git bos #20600 EDF 22741 - export XAO --- diff --git a/src/ExchangePlugin/doc/examples/export.py b/src/ExchangePlugin/doc/examples/export.py index 1f9b7c2b5..2a807f263 100644 --- a/src/ExchangePlugin/doc/examples/export.py +++ b/src/ExchangePlugin/doc/examples/export.py @@ -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()