Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf91461
)
bos #20600 EDF 22741 - export XAO
author
jfa
<jfa@opencascade.com>
Thu, 4 Feb 2021 13:29:52 +0000
(16:29 +0300)
committer
jfa
<jfa@opencascade.com>
Thu, 4 Feb 2021 13:29:52 +0000
(16:29 +0300)
src/ExchangePlugin/doc/examples/export.py
patch
|
blob
|
history
diff --git
a/src/ExchangePlugin/doc/examples/export.py
b/src/ExchangePlugin/doc/examples/export.py
index 1f9b7c2b5e125854519004e7cb67e49a3c5f198e..2a807f26331339a59f3bc0dcc1abebc0e3ef35f6 100644
(file)
--- 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()