- aDoc->objectByName(ModelAPI_ResultConstruction::group(), theName.toStdString());
- if (!aObj.get())
- aObj = aDoc->objectByName(ModelAPI_ResultBody::group(), theName.toStdString());
+ aDoc->objectByName(aType, theName.toStdString());
// We can not use here a dialog box for message -
// it will crash editing process in ObjectBrowser
Events_InfoMessage("XGUI_Tools", aErrMsg.toStdString()).send();
// We can not use here a dialog box for message -
// it will crash editing process in ObjectBrowser
Events_InfoMessage("XGUI_Tools", aErrMsg.toStdString()).send();