AnsweredAssumed Answered

Loading multiple features into the inspector

Question asked by sfarley on May 8, 2019
Latest reply on May 9, 2019 by sean_jones-esristaff

I'm attempting to decrease the performance time for ArcPro. A bit of code I am currently looking at is 


   foreach (long oid in oidList) {

      var inspector = new Inspector();

      inspector.Load(lyr.Value, oid);


      Node nd = new Node();

      Geometry geo = inspector.Shape;

      MapPoint pt = geo as MapPoint;


      nd.Lat = (float)pt.Y;




I was attempting to do:

   var inspector = new inspector;

   inspector.Load (lyr.Value, oidList); 


but then the inspector.Shape is null. Is there a way to load all of the oidList at once and still get to Shapes or should we just use rowcursors or something else? This for loop is taking almost 2 minutes on a small layer of 5600 nodes so I am dreading what will happen when we use the larger layers that the users will use.