You would use the AFElement.FindElementsByAttribute where you can specify an AFAttributeValueQuery specifying the AFAttributeTemplate as 'error', Operator as GreaterThan, and AttributeValue as 10.
This functionality does exist in PI DataLink depending on your version. There is an "Asset Filter" where you can filter by attribute if you select an element template. This returns the path to the asset. This is the first time I've used it see reminds me very much of the Event Frame search options within PI DataLink.
Let us know if this is what you are looking for.
You can use PI System Explorer and perform an attribute value search. Here's what it looks like:
Note the following:
1) You have to restrict this search to element templates
2) If you don't see "Attribute Value:" as a search criteria, you need to add it
3) Be very careful with this search as you may end up having to resolve many (millions?) of data references in order to filter out the attribute values. Don't say I didn't warn you if you end up causing performance issues with your PI System
Thank you fellows, Your answers were very helpful..
I used 'advance element search' option with 'attribute search' check-box and I got my results..
Hi Stephen, Just out of curiosity is screenshot you shared from latest version of PI AF Explorer, because it gave me idea where to look but I didn't exactly get similar UI for search, although it served my purpose.. (I am using PI AF Explorer Version 220.127.116.1159)
I am using latest AF 2014 R2 (v2.6.1). It is the latest release version.