GetSelection Method (FeatureSceneLayer)
Gets the current selection.
This method must be called on the MCT. Use QueuedTask.Run.
Delete all the selected features in FeatureSceneLayer
//must support editing!
//var featSceneLayer = .... ;
if (!featSceneLayer.HasAssociatedFeatureService ||
!featSceneLayer.IsEditable)
return;
var delOp = new EditOperation()
{
Name = "Delete selected features"
};
//Assuming we have a selection on the layer...
delOp.Delete(featSceneLayer, featSceneLayer.GetSelection().GetObjectIDs());
await delOp.ExecuteAsync();//await if needed but not required
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.