Well the title said it.is possible to check using the PI AF SDK if an attributte exist?@
On top of what Paul has written, here is an example if you want to check if an attribute exists for a given AF path:
public static bool AttributeExists(string path)
AFAttribute attribute1 = AFObject.FindObject(path) as AFAttribute;
Let us know if this is what you are looking for!
Is there any filtering you want to do to find your attribute?
Do you want to search by name, by ID, in a particular part of your hierarchy, in a particular element, etc?
We have multiple methods depending on what you are looking to do. Take a look at the static methods for the AFAttribute class. Particularly the FindAttribute and FindElementAttributes methods should be helpful for you.
Thanks,That is what I need.Actually I was going to answer my own question,I did exactly what you answer me.
Retrieving data ...