AnsweredAssumed Answered

Moving selected features

Question asked by bulla_b on Aug 22, 2017
Latest reply on Sep 8, 2017 by UHarano-esristaff



i'm having some trouble trying to figure out how to move a bunch of selected features from a specific point layer in the map.  This is what I have so far:


//****Get all of the selected ObjectIDs from the VLS layer.
var abLayer = MapView.Active.Map.FindLayers("GISWRKS1.WORKS.AsBuilts").First() as BasicFeatureLayer;
var selection = abLayer.GetSelection();
IReadOnlyList<long> selectedOIDs = selection.GetObjectIDs(); //save the selected OBJECTIDs to a list.


var insp = new ArcGIS.Desktop.Editing.Attributes.Inspector(); //create the Inspector

var moveFeature = new EditOperation();

moveFeature.Name = "Move AsBuilts";


//Loop through each selected OBJECTID
foreach (var oid in selectedOIDs)
insp.Load(abLayer, oid);

moveFeature.Move(..............);      //****  This is where I get stuck....I don't know what to do





I think my approach is all wrong, but I'm not sure what to do.  I'm not exactly sure how to interpret this:  ArcGIS Pro 2.0 API Reference Guide