AnsweredAssumed Answered

Find AFAttribute by GUID relative to PISystem

Question asked by JGrothoff on Mar 17, 2016
Latest reply on Apr 22, 2017 by ernstamort

Hi, is it possible to find an AFAttribute by its Guid starting from a PISystem or at least a Database?
I only found the AFAttribute.FindAttribute(AFBaseElement, Guid) method, which searches relative from an AFBaseElement.

Maybe there is a way to build a corresponding search path for AFObject.FindObject(String path)



I am implementing an adapter for OPCUA and would like to use the Guid as OPCUA NodeID.

So i am looking for a function to find any AFObject by its ID like AFObject.FindObject(GUID). I could use AFElement.FindElement(PISystem, Guid) for AFElements, AFElementTemplate.FindElementTemplate(PISystem, Guid) and so on for almost all AFIdentities i am using. But i could not find a corresponding method for AFAttributes.

If it is not possible to find the AFAttributes by ID, i have to use the path as String NodeID, which will probably use more space than the GUIDs.