Since %OSI element (module) is not available in AF, how can I copy of one element (module) and all of the children module and properties to another location using PI-SDK?
%OSI, %OSI_MCN and %OSI_ManagedPI are used to store configuration data. The content is not synchronized by PI AF Link Subsystem but remains in the Module Database (MDB). There shouldn't be any custom data in %OSI. What's the reason you would like to copy content from %OSI to AF?
To answer your question, you can use PI SDK to read modules, aliases and properties from MDB and PI AF SDK to create corresponding elements and attributes in PI AF.
Thanks for the quick response. I need to add 3000 PI Dataset for PI Table, and I am looking to just copy from existing PI Dataset in PI MDB instead of start from the beginning everytime.
I believe you are talking about PI Calculation Datasets in PI WebParts, right?
Do you intend using these calculation datasets with AF Attributes?
If I am not mistaken, when using the PI Table WebPart you need PI Calculation Datasets which are stored in %OSI or more precisely in %OSI\ClientApps\RTBaseline\DataSources\PI Data Archive\
Yes, I am using the Datasets in PI Table.
Since PI Table can only accept PI Datasets, and I have 3000 to create, it will be much easier if I could "copy and paste" using PI SDK.
I understand you would like to programmatically create PI Calculation Datasets under %OSI\ClientApps\RTBaseline\DataSources\PI Data Archive\
Please consider using MDB Builder add-in for Excel (..\PIPC\MDBBuilder\MDBBuilder.xla) instead.
Retrieving data ...