I would like to know way to access "PI Event Frame Annotations" using AF SDK. Couldn't find in the SDK reference document, but I see there is method to access using PI web API .
PI Web API:
First thing I would suggest is looking up the AFEventFrame class in Live Library. Scroll past the properties to the methods, and GetAnnotations should pop out to you.
Thank you Rick.
I would like to know if there is method get all AF Event frame annotations added during specific period of time (at the database level).
We have requirement to publish all annotations which added recently by user for any event. Since we would be having huge number of event frames generated for multiple equipment's, it would be very expensive to go through each and every event frame object and look for if there is any annotation been added.
There is an IsAnnotated search filter for AFEventFrameSearch. There are a couple of AFEventFrameSearch constructors to allow you to input a date range. Note this does not track the create date for when the annotation was made. Rather it simply shows which event frames within the requested time range have annotations. Likewise, the search does not return the annotations. You will still need to issue a GetAnnotations() call per event frame, and from there can inspect the creation date.
You can also use the ModifyDate filter in the AFEventFrameSearch search criteria to find the event frames that have been modified since a specified date.
Retrieving data ...