From 5bccda6b40bafbcaab0fb4e2fa7242770549ad22 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 27 Jan 2010 09:54:01 +0000 Subject: [PATCH] For PARAVIS: use AttributeUserID instead of AttributeLocalID --- src/VISU_I/VISU_Result_i.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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(); -- 2.39.2