AnsweredAssumed Answered

How do you get "isXTag" from an existing XY Plot in Processbook using C

Question asked by daviessj on Jul 29, 2015
Latest reply on Jul 29, 2015 by daviessj

I am building a custom Windows Forms Application using C# to automate the process of changing tags from an old PI server to a new one (changing tag names and the server name) and have run into a problem with XY Plots.  I need to get and retain the "isXTag" property for each tag assigned to an existing XY Plot before making any changes but can't seem to find how to do so.  The Processbook VBA Programming Guide seems to imply that there is an "Index" property on the "XYTags" collection within an XYPlot to access the information for a particular tag, but it does not seem to exist for the XYPLot.dll in C#.

 

My current code allows me to get the XYPlot object and its Definition (see code below) , but I can't find a way to find if a particular tag is the "X" tag.

 

Does anyone have any experience with this and can you help me find a way to access this information please?

 

 

XYPlot sXYPlot = (XYPlot.XYPlot)selectedSym;

 

XYDefinition sXYPlotDefinition = sXYPlot.GetDefinition();

 

Outcomes