def test_addExport(self):
self.session.startOperation()
- self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", "file_format", [])
+ self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", [], "file_format")
self.session.finishOperation()
if __name__ == "__main__":
# Initialization of the test
#=========================================================================
from ModelAPI import *
-from GeomDataAPI import *
from GeomAlgoAPI import *
-from GeomAPI import *
-import os
import math
__updated__ = "2015-05-22"
assert aFeature1.getKind() == "Group"
assert aFeature1.name() == "boite_1"
- aSelectionList = aFeature1.selectionList("group_list")
- assert aSelectionList.selectionType() == "Solids"
+ aSelectionList = aFeature1.selectionList("group_list")
+ assert aSelectionList.selectionType() == "solid"
assert aSelectionList.size() == 1
assert aSelectionList.value(0).namingName("") == "mygeom_1_1"
assert aFeature2.name() == "Group_2"
aSelectionList = aFeature2.selectionList("group_list")
- assert aSelectionList.selectionType() == "Faces"
+ assert aSelectionList.selectionType() == "face"
assert aSelectionList.size() == 2
assert aSelectionList.value(0).namingName("") == "mygeom_1/Shape1_1"
assert aSelectionList.value(1).namingName("") == "mygeom_1/Shape2_1"
<group id="Exchange">
<feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part">
<file_selector id="file_path" title="Import file" path="">
- <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES" />
+ <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES,XAO:XAO" />
</file_selector>
</feature>
<feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png">