ArcGIS Pro 3.7 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
    // Planarizes the specified feature in the given feature layer.
    await QueuedTask.Run(() =>
      {
        // note - EditOperation.Planarize requires a standard license. 
        //  An exception will be thrown if Pro is running under a basic license. 
    
        var planarizeFeatures = new EditOperation() { Name = "Planarize Features" };
    
        // Planarize one or more features
        planarizeFeatures.Planarize(featureLayer, [objectId]);
    
        // Execute to execute the operation
        // Must be called within QueuedTask.Run
        if (!planarizeFeatures.IsEmpty)
        {
          //Execute and ExecuteAsync will return true if the operation was successful and false if not
          var result = planarizeFeatures.Execute();
          //or use async flavor
          //await planarizeFeatures.ExecuteAsync();
        }
      });
    Edit Operation Perform a Clip, Cut, and Planarize
    // Performs a sequence of editing operations on a feature, including clipping, cutting, and planarizing.
    await QueuedTask.Run(() =>
      {
        //Multiple operations can be performed by a single
        //edit operation.
        var clipCutPlanarizeFeatures = new EditOperation() { Name = "Clip, Cut, and Planarize Features" };
        clipCutPlanarizeFeatures.Clip(featureLayer, objectId, clipPolygon);
        clipCutPlanarizeFeatures.Split(featureLayer, objectId, cutLine);
        clipCutPlanarizeFeatures.Planarize(featureLayer, objectId);
    
        if (!clipCutPlanarizeFeatures.IsEmpty)
        {
          //Note: An edit operation is a single transaction. 
          //Execute the operations (in the order they were declared)
          //Execute and ExecuteAsync will return true if the operation was successful and false if not
          clipCutPlanarizeFeatures.Execute();
          //or use async flavor
          //await clipCutPlanarizeFeatures.ExecuteAsync();
        }
      });
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also