#include "SALOMEDS_Tool.hxx"
#include "HDFascii.hxx"
+#include "Basics_Utils.hxx"
#include "SUIT_Session.h"
#include "SALOME_Event.h"
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();