Salome HOME
23586: [EDF] HYDRO: Copy mesh to new geometry
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Utils.cxx
index 21f74593fbde626c20cdcba8a1061971d4209417..3c83225bc80b638eb7c7c0f1b258a3bbeaa76590 100644 (file)
@@ -246,6 +246,16 @@ namespace SMESH
     return app->orb()->string_to_object(theIOR.toLatin1().data());
   }
 
+  CORBA::Object_var EntryToObject( const QString& theEntry )
+  {
+    if ( _PTR(Study) aStudy = GetActiveStudyDocument() )
+    {
+      _PTR(SObject) anObj = aStudy->FindObjectID( theEntry.toLatin1().data() );
+      return SObjectToObject(anObj);
+    }
+    return CORBA::Object::_nil();
+  }
+
   int GetNameOfSelectedIObjects(LightApp_SelectionMgr* theMgr, QString& theName)
   {
     if (!theMgr)