4 Replies Latest reply on Mar 14, 2019 3:07 AM by tramachandran

    Add Range to PIPointList

    NEERAJ

      Hi,

       

      Can some help me with the smart way of adding range in one go instead of doing it multiple times..currently i am adding it like below

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_s)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_d)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_se)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_n)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_k)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_ur)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tagname_fk)));

                                  myPIPointList.AddRange(new PIPointList(PIPoint.FindPIPoints(myPIServer, tag_name_p)));

       

      Thanks!