+ int anId = 0;
+ SALOME::Notebook_ptr aNotebook = GetNotebook();
+ if( !CORBA::is_nil( aNotebook ) )
+ {
+ SALOMEDS::Study_ptr aStudy = aNotebook->GetStudy();
+ if( SMESH_Gen_i* aGen = SMESH_Gen_i::GetSMESHGen() )
+ {
+ if( StudyContext* aStudyContext = aGen->GetStudyContext( aStudy->StudyId() ) )
+ {
+ CORBA::String_var anIOR = aGen->GetORB()->object_to_string( _this() );
+ anId = aStudyContext->findId( anIOR.in() );
+ }
+ }
+ }
+