I am looking for a solution to write messages in the "Status Report" window of PI-ProcessBook using VBA.
Could you please give me an example or tell me which method do I need to use?
Thanks in advance,
As the Product Manager for PI ProcessBook, I'm naturally curious about why you want to append the information that is currently shown in the Status Report window in PI ProcessBook. As I'm sure you know, this window is intended to reflect the state of data retreival on a symbol by symbol basis, so the opportunity to post additional information to this window is limited at best.
If you can describe to me what you'd like to accomplish, perhaps there is another means to get your desired result.
Thanks for your reply.
I am doing a "rich" display with VBA code (animation of objects, connection to third party system, specific calculations...). In case of errors in the program (or just to show the progression of the program), I want to be able to show these messages to the user without Msgbox (pop-up).
The "Status Report" was quite a good solution because it can give to the user a quick information of the status of the display (using the green or red status in the bottom of the application).
Maybe, it is possible to use a status bar indication like in Excel but I didn't find it.
Could you tell me if this functionality exists in PI-PB?
How about writing to the local pi message log, which can be accessed from the Status Window. However, this limits the scope for display diagnostic to the user's machine. Depending on the need you could switch to writing to the PI Server Message Log. With this approach you would need either a .docking window add-in or VBA user form to display the information/errors.
Would be interested to hear about your 'animation of objects'.
ProcessBook provides a means to write to its error log (Application LogMessage Method), but not to post to the Status Bar.
One option would be to use conditional formatting of a symbol on your display and customize the ToolTip text, which is available in the current automation model.
Or, have you considered using either the custom toolbar or docking window mechanisms? With a docking window, you could provide your own visualization of the status of your custom implementation and more easily deploy the result to all users as an add-in, regardless of which display they are using....
If these options sound appealing, I can ask one of our developers to review this thread and add any recommendations.
I will use a symbol or a docking window. I have examples for that.
Thank you very much
Glad to help, Gael. Please repost if you need additional suggestions. At least one ProcessBook developer (and the always helpful Rhys) are monitoring this thread.
Rhys, my animation of objects is very limited. I just use multiple objects that I superpose and I just use the visible property (false or true) to display the required object depending of the state I want to see. I use alo background color for other objects.
As I told you it is very limited.
Ok, I see. Reason I asked is I am looking at animating too (well sort of). Been talking about process simulation models with a few people and floating ideas around about how to use Processbook to animate, for example material flowing through a process with grade changes and physical property changes...
Anyway, i've dragged your post off topic enough for one day, thanks for sharing. :)
Rhys @ RJK SolutionsAnyway, i've dragged your post off topic enough for one day, thanks for sharing. :)
GaelI am doing a "rich" display with VBA code (animation of objects, connection to third party system, specific calculations...).
Retrieving data ...