ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Planarize Method / Planarize(Layer,IEnumerable<Int64>,Nullable<Double>) Method
The layer of the features to planarize.
The oids of the features to planarize.
(optional) The cluster tolerance used while planarizing features. (default value = null, otherwise must be at least the XY tolerance of the data)
Example

In This Topic
    Planarize(Layer,IEnumerable<Int64>,Nullable<Double>) Method
    In This Topic
    Planarize features.
    Syntax
    Public Overloads Sub Planarize( _
       ByVal layer As Layer, _
       ByVal oids As IEnumerable(Of Long), _
       Optional ByVal clusterTolerance As Nullable(Of Double) _
    ) 

    Parameters

    layer
    The layer of the features to planarize.
    oids
    The oids of the features to planarize.
    clusterTolerance
    (optional) The cluster tolerance used while planarizing features. (default value = null, otherwise must be at least the XY tolerance of the data)
    Exceptions
    ExceptionDescription
    Layer and ObjectIDs cannot be null. List of ObjectIDs cannot be empty.
    Insufficient license. This method requires a standard license.
    Remarks

    If the clusterTolerance is null, then the default will be to use the sourceLayer's spatial reference XY Tolerance.

    The clusterTolerance is assumed to be in the units of the sourceLayer's spatial reference XY Tolerance.

    Example
    Edit Operation Planarize Features
    // note - EditOperation.Planarize requires a standard license. 
    //  An exception will be thrown if Pro is running under a basic license. 
    
    var planarizeFeatures = new EditOperation();
    planarizeFeatures.Name = "Planarize Features";
    
    //Planarize one or more features
    planarizeFeatures.Planarize(featureLayer, new List<long>() { oid });
    
    //Execute to execute the operation
    //Must be called within QueuedTask.Run
    if (!planarizeFeatures.IsEmpty)
    {
      var result = planarizeFeatures.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
    }
    
    //or use async flavor
    //await planarizeFeatures.ExecuteAsync();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also