Fix dump of ExportCGNS, ExportGMF, CreateMeshesFromUNV and CreateMeshesFromGMF

This commit is contained in:
gdd 2012-10-04 09:21:50 +00:00
parent 1e6fde8450
commit f312847d16
2 changed files with 6 additions and 5 deletions

View File

@ -961,7 +961,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromUNV( const char* theFileName
aStudyBuilder->CommitCommand();
if ( !aSO->_is_nil() ) {
// Update Python script
TPythonDump() << aSO << " = smeshgen.CreateMeshesFromUNV(r'" << theFileName << "')";
TPythonDump() << aSO << " = " << this << ".CreateMeshesFromUNV(r'" << theFileName << "')";
}
}
@ -1253,7 +1253,7 @@ SMESH_Gen_i::CreateMeshesFromGMF( const char* theFileName,
aStudyBuilder->CommitCommand();
if ( !aSO->_is_nil() ) {
// Update Python script
TPythonDump() << aSO << " = " << this << ".CreateMeshesFromGMF(r'" << theFileName << "')";
TPythonDump() << "("<< aSO << ", error) = " << this << ".CreateMeshesFromGMF(r'" << theFileName << "')";
}
}
SMESH_Mesh_i* aServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( aMesh ).in() );

View File

@ -3025,8 +3025,8 @@ void SMESH_Mesh_i::ExportCGNS(::SMESH::SMESH_IDSource_ptr meshPart,
SMESH_MeshPartDS partDS( meshPart );
_impl->ExportCGNS(file, &partDS);
TPythonDump() << _this() << ".ExportCGNS( "
<< meshPart<< ", r'" << file << "', " << overwrite << ")";
TPythonDump() << _this() << ".ExportCGNS( r'"
<< file << "', " << overwrite << ", "<< meshPart<< ")";
#else
THROW_SALOME_CORBA_EXCEPTION("CGNS library is unavailable", SALOME::INTERNAL_ERROR);
#endif
@ -3051,7 +3051,8 @@ void SMESH_Mesh_i::ExportGMF(::SMESH::SMESH_IDSource_ptr meshPart,
SMESH_MeshPartDS partDS( meshPart );
_impl->ExportGMF(file, &partDS);
TPythonDump() << _this() << ".ExportGMF( " << meshPart<< ", r'" << file << "')";
TPythonDump() << _this() << ".ExportGMF( r'"
<< file << "', "<< meshPart<< ")";
}
//=============================================================================