aStudyBuilder->CommitCommand();
if ( !aSO->_is_nil() ) {
// Update Python script
- TPythonDump() << aSO << " = smeshgen.CreateMeshesFromUNV(r'" << theFileName << "')";
+ TPythonDump() << aSO << " = " << this << ".CreateMeshesFromUNV(r'" << 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() );
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
SMESH_MeshPartDS partDS( meshPart );
_impl->ExportGMF(file, &partDS);
- TPythonDump() << _this() << ".ExportGMF( " << meshPart<< ", r'" << file << "')";
+ TPythonDump() << _this() << ".ExportGMF( r'"
+ << file << "', "<< meshPart<< ")";
}
//=============================================================================