Importing PDIX display programmatically

We are currently working on automating our PI workflow, which includes element creation and folder management, using AF SDK and PI Web API. We've successfully implemented most of our planned automations, but we've hit a roadblock when it comes to programmatically importing PDIX files into PI Vision displays.

We explored the PI Web API documentation and found an endpoint for updating displays that seems to accept a JSON body. We attempted to leverage this by extracting the

display_json

and

metadata_json

files from a PDIX and using them to construct the required JSON structure for the endpoint, but this approach was unsuccessful.

Additionally, we looked into using the PI Vision Display Utility tool. However, we discovered that the executable doesn't support command-line arguments, meaning invoking it programmatically (even with a

\silent

flag) still opens the GUI.

Is there a straightforward way to programmatically import PDIX files into PI Vision displays, or an alternative method we might be overlooking? Any guidance or insights would be greatly appreciated!"

Parents
  • ​ Thank you for your suggestion! We appreciate the idea of importing displays once and then modifying them via the API. However, our primary goal is to fully automate the entire workflow, including the PDIX import step. Manual or semi-manual importing methods, even as a one-time setup, fall outside the scope of our automation requirements.

    We are specifically looking for a programmatic way to handle the PDIX import directly. Any further insights into achieving this, or alternative API approaches that would allow for automated PDIX consumption, would be greatly beneficial.

Reply
  • ​ Thank you for your suggestion! We appreciate the idea of importing displays once and then modifying them via the API. However, our primary goal is to fully automate the entire workflow, including the PDIX import step. Manual or semi-manual importing methods, even as a one-time setup, fall outside the scope of our automation requirements.

    We are specifically looking for a programmatic way to handle the PDIX import directly. Any further insights into achieving this, or alternative API approaches that would allow for automated PDIX consumption, would be greatly beneficial.

Children
No Data