From: vsr Date: Wed, 27 Jan 2010 09:54:01 +0000 (+0000) Subject: For PARAVIS: use AttributeUserID instead of AttributeLocalID X-Git-Tag: V5_1_main_20100128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bccda6b40bafbcaab0fb4e2fa7242770549ad22;p=modules%2Fvisu.git For PARAVIS: use AttributeUserID instead of AttributeLocalID --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 903a5f0b..3099bec2 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -37,6 +37,7 @@ #include "SALOMEDS_Tool.hxx" #include "HDFascii.hxx" +#include "Basics_Utils.hxx" #include "SUIT_Session.h" #include "SALOME_Event.h" @@ -385,15 +386,17 @@ VISU::Result_i SALOMEDS::GenericAttribute_var anAttr; SALOMEDS::AttributePixMap_var aPixmap; - SALOMEDS::AttributeLocalID_var aId; + SALOMEDS::AttributeUserID_var aId; anAttr = aStudyBuilder->FindOrCreateAttribute( mySObject, "AttributePixMap" ); aPixmap = SALOMEDS::AttributePixMap::_narrow( anAttr ); aPixmap ->SetPixMap("ICON_TREE_RESULT"); - anAttr = aStudyBuilder->FindOrCreateAttribute( mySObject, "AttributeLocalID" ); - aId = SALOMEDS::AttributeLocalID::_narrow( anAttr ); - aId ->SetValue(VISU::TRESULT); + std::string auid = "AttributeUserID"; + auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID); + anAttr = aStudyBuilder->FindOrCreateAttribute( mySObject, auid.c_str() ); + aId = SALOMEDS::AttributeUserID::_narrow( anAttr ); + aId ->SetValue("VISU.RESULT"); if(theIsBuildAll) return BuildAll();