+ def ExportMESHIO(
+ self,
+ fileName,
+ selectedFilter,
+ meshPart
+ ):
+ """
+ Exports a part of mesh to a file with meshio library
+ through an intermediate MED file.
+
+ Parametrs described below are the same as for ExportMED() method.
+ However, we know that _pyMesh::Process(const Handle(_pyCommand)& theCommand) method
+ change a position of meshPart argument when dump to a Python script for whatever reason
+ this way:
+ - to 5th place for ExportMED command
+ - to last place for the rest commands
+
+ So, for this method meshPart moved to the end of the args.
+ Look at src/SMESH_I/SMESH_2smeshpy.cxx for related source code.
+
+ The same note is for the name of the method that was dumped as ExportPartToMESHIO(),
+ but then processing just removes PartTo from the middle of the name as it was done
+ for all export methods.
+
+ Parameters:
+ fileName: is the file name
+ selectedFilter: filter string selected by user in a file dialog
+ meshPart: a part of mesh (:class:`sub-mesh, group or filter <SMESH.SMESH_IDSource>`)
+ to export instead of the mesh
+ """
+
+ if isinstance(meshPart, Mesh):
+ meshPart = meshPart.GetMesh()
+
+ self.mesh.ExportPartToMESHIO(
+ meshPart,
+ fileName,
+ selectedFilter
+ )
+
+