for (; fIt!=famVec.end(); ++fIt)
{
- try // safety : FAMILY could be lost P2-->P1
+ try //
{
std::string givenFamNameFromMeshGemConverter = fileMesh->getFamilyNameGivenId( std::abs(fIt->_famId) );
fileMesh->changeFamilyId(std::abs(fIt->_famId), fIt->_famId);
SMESHGUI_MgAdaptDlg::clickOnApply();
bool ok = execute();
- //~SMESHGUI_MG_AdaptComputeDlg_QThread atest(getModel());
- //~atest.start();
- //~atest.quit();
if (getModel()->getPublish()) this->createMeshInObjectBrowser();
return ok;
std::cerr<<e.what();
ret = -1;
}
+ if(ret!=-1 && myMgAdapt->getPublish())
+ {
+ SMESH_Gen_i* smeshGen_i = SMESH_Gen_i::GetSMESHGen();
+ SMESH::DriverMED_ReadStatus theStatus;
+ smeshGen_i->CreateMeshesFromMED(myMgAdapt->getMedFileOut().c_str(), theStatus);
+ }
//~errStr = err.c_str();
return ret;
}