ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Planarize Method / Planarize(Layer,IEnumerable<Int64>,Double,LinearUnit) Method
The layer of the features to planarize.
The oids of the features to planarize.
The cluster tolerance used while planarizing features(> xyTolerance of data).
The linear unit of the cluster tolerance.
Example

In This Topic
    Planarize(Layer,IEnumerable<Int64>,Double,LinearUnit) Method
    In This Topic
    Planarize features.
    Syntax

    Parameters

    layer
    The layer of the features to planarize.
    oids
    The oids of the features to planarize.
    clusterTolerance
    The cluster tolerance used while planarizing features(> xyTolerance of data).
    clusterToleranceUnit
    The linear unit of the cluster tolerance.
    Exceptions
    ExceptionDescription
    Layer and ObjectIDs cannot be null. List of ObjectIDs cannot be empty.
    clusterToleranceUnit cannot be null.
    Insufficient license. This method requires a standard license.
    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