1 Reply Latest reply on Jan 17, 2013 5:51 PM by dhollebeek

    Get number of pairs in XYPlot - Pairs.Count = 0 (in fact >10 000)

    sovain

      Hi,

       

      If you look at screenshot, ProcessBook gives me a message if a number of pairs > 10000 on XY Trend.

       

      I need to get this number using ActiveView component in C#. The reason of that is to give a message to user that "too many points..., please decrease range etc", otherwise the XYtrend will be displayed with "NO Data"  - that is not true, there are more than enough data but the limit of pairs is 10 000.

       

      The part of coding is:

       

      xydefinition = XY_Trend.GetDefinition();

       

       

       

      temp_Tag = xydefinition.Tags.Add(...);

       

      temp_Tag.SetTimeRange(....);

       

      ....

       

      I was trying to get the number  using:

       

      MessageBox.Show(XY_Trend.Pairs.Count.ToString());

       

      MessageBox.Show(XY_Trend.PtCount.ToString());

       

       

       

      Both messages gave me 0 that is not correct.

       

      Please help

       

      Thanks

       

      Oleg

       

       

       

       

       

      5315.1.JPG