ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Explode Method / Explode(Layer,IEnumerable<Int64>,Boolean) Method
The layer of the features to explode.
The oids of the features to explode.
Option to delete or keep original feature after explode operation.
Example

Explode(Layer,IEnumerable<Int64>,Boolean) Method
Explode features.
Syntax

Parameters

layer
The layer of the features to explode.
oids
The oids of the features to explode.
keepOriginalFeature
Option to delete or keep original feature after explode operation.
Exceptions
ExceptionDescription
Layer and ObjectIDs cannot be null. List of ObjectIDs cannot be empty.
Example
Edit Operation Explode Features
var explodeFeatures = new EditOperation();
explodeFeatures.Name = "Explode Features";

//Take a multipart and convert it into one feature per part
//Provide a list of ids to convert multiple
explodeFeatures.Explode(featureLayer, new List<long>() { oid }, true);

//Execute to execute the operation
//Must be called within QueuedTask.Run
explodeFeatures.Execute();

//or use async flavor
//await explodeFeatures.ExecuteAsync();
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.3 or higher.
See Also