1 of 1 people found this helpful
If you are familiar with the ProcessBook object model, it's not too difficult to do this from a C# application. Whether you choose create the display from scratch via code or use a pre-defined template as a starting point will depend on how complex you want to the dynamically created display to be (number of Trends and other symbols, specific placement of symbols, formatting of symbols, multistate symbols etc, even VBA behind the display). It wouldn't be too hard to even define a display template in something like JSON or XML. In fact, if you have any familiarity at all with the old MCN Health Monitor package, the display builder component (IT Overview Add-in to PI ProcessBook) used similar templates to generate displays for specific device types (stay away from the XPath and XQuery stuff that was used with the MCN add-in templates ). If you plan on generating a fairly simple display then this approach may be a bit of overkill.
The ProcessBook object model is easy enough to use from .Net, and you can do pretty much everything from C# that you can do from ProcessBook VBA. If you haven't already seen these, there are some good resources within these forums for doing what you are after. A sample of some of these resources are as follows:
Building a ProcessBook Docking Window with AF UI Controls (this one is good for showing how to use parts of the ProcessBook object model in C#)
If you have any specific questions as to object usage, or your approach, please post them!
Thanks for your answer John! I'm going to start pulling some of those threads you provided.