Is it possible to create an "manually input" in processbook to enter data into AF-attributes?
We want a possibility for useres to enter recipe-name.
Yes it is, but you need to remember that because AF is accessed via the AFSDK (which is a .Net library), you will need to write either a .Net based add-in for ProcessBook to handle this, or use a COM wrapper around AFSDK calls so you can use VBA in ProcessBook. This is discussed in a number of threads in these forums, such as here, here and here.
Some other resources you may find helpful on this:
Building a ProcessBook Docking Window with AF UI Controls
Programming .NET add-ins for PI ProcessBook
AFSDK COM Wrapper
These last two links require PI Developers Club membership in order to access the linked content.
If you are looking to capture/store recipe names, does this mean you are using a batch process that is currently, or could be utilising Event Frames? Could you capture recipe name as an attribute on the Event Frame as part of the Event Frame generation, without manual user input?
I tried your link "Programming .NET add-ins for PI ProcessBook" but it gives me an error for unauthorized access even though I have a membership for PI Developers Club.
Does this require any other special permissions ?
I'm going to go out on a limb here and suggest that this webinar content has been removed, as I can no longer find it anywhere on PI Square either. Time to throw out that bookmark by the looks of it . Sorry about that.
Hello Akash and John,
Let me announce the video as "missing" and please accept our apologies for the inconvenience. We are still searching and will share an actual link as soon as we have it.
I've just uploaded the recording: Builders' Café Webinar Series - Programming .NET Add-Ins for PI ProcessBook
Jive reports the video is still rendering so it may take an hour or so until you are able to consume it.
One webinar topic was about using Templates making things even easier. Please note that Visual Studio Sample Templates for Creating ProcessBook 3.x Add-ins in C# and VB.NET is available for owners of a paid seat at PI Developers Club.
Most excellent. Thanks Gregor.
Few different ways...
- Use PI Web API from VBA to write the value.
- AF Wrapper will allow you to call the AF SDK from VBA.
- ProcessBook add-in that uses the AF SDK.
- VBA that creates a text file on a server share that is processed by PI-UFL.
Depends on what you have available to you, and whether you want to write something yourself.
Retrieving data ...