AnsweredAssumed Answered

Add Range to PIPointList

Question asked by NEERAJ on Mar 13, 2019
Latest reply on Mar 14, 2019 by tramachandran

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!

Outcomes