Retreive AFAttribute using it's ID

Discussion created by nkabbani on Apr 24, 2014
Latest reply on Apr 28, 2014 by nkabbani

I've been given a requirement to read the value of an AFAttribute. The only information I am being provided is the ID of the attribute (the GUID).


Looking through the documentation I can see there is the following method that returns an AFAttribute object that I can use to obtain the value (via the GetValue method)


OSIsoft.AF.Asset.AFAttribute.FindAttribute(OSIsoft.AF.Asset.AFBaseElement, System.Guid)


My issue here is that I can't find any information on the AFBaseElement parameter that the method requires.


Does anybody have any further documentation on AFBaseElement or any pointers on how to use the above method?


Also open to alternative suggestions to achieve my requirement if anyone has anything?


Many thanks