When you say "fixed", do you mean you do not want anyone to make changes?
I mean write any changes in file. I use AFDatabase.FindChangedItems(), but it return elements changes. If I modify the attribute in any elements, then AFDatabase.FindChangedItems() return just element in which attribute was changed.
I want find any changed attributes in AF model and write this changes in file.
AF 2014 (v2.6) has a new feature for audit trail. It requires SQL Server Enterprise. Please consult the AF 2014 documentation for details on how to turn it on and what it can do. In summary, the audit trail will tell you who did what (previous value and new value), and when it was done. Does that satisfy your needs?
I try audit trail, but it require a lot of computer resources, which i haven't. And i need get attribute changes using AF SDK.
Storing audit records is overhead that requires resources and may impact performance.
PI AF Developer Tools 2014 setup kit installs AF SDK Library Reference 126.96.36.19943 (%PIHOME%\Help\AFSDK.chm). Please look for AFAuditTrail class in OSIsoft.AF.Diagnostics namespace.
I've added a reply to this thread
AFAuditTrail Class have a very limited search capability : by Time only, can't get audit records for an Element or Attribute specifically.
Retrieving data ...