How to get the list of PI Points used in a ProcessBook display?
Another (non-programmatic) way is to click on the green circle in the bottom right of the PB display. Then click Save to File, which will export the tag list as a csv.
One way is to loop through the ProcessBook symbols and get the list of tags in each. E.g.
Dim syms As Symbols
Dim sym As Symbol
Dim tag As String
Set syms = ThisDisplay.Symbols
For i = 1 To syms.Count
Set sym = syms(i)
For j = 1 To sym.PtCount
tag = sym.GetTagName(j)
The above example adds the list of tags in a listbox. If you want to get the list of points only for specific symbols (e.g. trend, value, etc.), you can filter them using the Symbol.Type property.
Thank you Daphne!
Thank you Barry! This is much easier ☺
Retrieving data ...