AnsweredAssumed Answered

How can I get a PI Calc expression from a ProcessBook value symbol?

Question asked by AdamStidham on Mar 23, 2016

I have the following VBA code for a ProcessBook display:

 

For Each oSymbol In oDisplay.Symbols

        If oSymbol.Type = pbSYMBOLTYPE.pbSymbolValue Then

            Set oValue = oSymbol

            'Need to get PI Calc expression for symbol

           'oValue.GetTagName(1) returns the name of the PI Calc, but not the expression

        End If

Next oSymbol

 

I need to get the PI Calc expression for the value symbol, but oValue.GetTagName(1) only returns the name of the PI Calc and not the PI Calc expression.  How can I get the PI Calc expression for the value symbol?

Outcomes