]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOM_SWIG/geomBuilder.py
Salome HOME
Merge from BR_V7_main_Field branch (02/09/2013)
[modules/geom.git] / src / GEOM_SWIG / geomBuilder.py
index 91e86c3cb64bbc25d586c3e6a5ac5b1474906c53..c4f9c96736b0d3b32d4e9f6351a8fc2ffdb8c18d 100644 (file)
@@ -12288,6 +12288,36 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
             RaiseIfFailed("MakeSmoothingSurface", self.AdvOp)
             return anObj
 
+        ## Export a shape to XAO format
+        #  @param shape The shape to export
+        #  @param groups The list of groups to export
+        #  @param fields The list of fields to export
+        #  @param author The author of the export
+        #  @param fileName The name of the file to export
+        #  @return boolean
+        #
+        #  @ref tui_exportxao "Example"
+        def ExportXAO(self, shape, groups, fields, author, fileName):
+            res = self.InsertOp.ExportXAO(shape, groups, fields, author, fileName)
+            RaiseIfFailed("ExportXAO", self.InsertOp)
+            return res
+
+        ## Import a shape from XAO format
+        #  @param shape Shape to export
+        #  @param fileName The name of the file to import
+        #  @return tuple (res, shape, subShapes, groups, fields)
+        #       res Flag indicating if the import was successful
+        #       shape The imported shape
+        #       subShapes The list of imported subShapes
+        #       groups The list of imported groups
+        #       fields The list of imported fields
+        #
+        #  @ref tui_importxao "Example"
+        def ImportXAO(self, fileName):
+            res = self.InsertOp.ImportXAO(fileName)
+            RaiseIfFailed("ImportXAO", self.InsertOp)
+            return res
+
         #@@ insert new functions before this line @@ do not remove this line @@#
 
         # end of l4_advanced