ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / Planarize Method / Planarize(Layer,Int64,Nullable<Double>) Method
The layer of the feature to planarize.
The oid of the feature 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,Int64,Nullable<Double>) Method
    In This Topic
    Planarize a feature.
    Syntax
    public void Planarize( 
       Layer layer,
       long oid,
       Nullable<double> clusterTolerance
    )
    Public Overloads Sub Planarize( _
       ByVal layer As Layer, _
       ByVal oid As Long, _
       Optional ByVal clusterTolerance As Nullable(Of Double) _
    ) 

    Parameters

    layer
    The layer of the feature to planarize.
    oid
    The oid of the feature 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 cannot be null.
    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 Perform a Clip, Cut, and Planarize
    //Multiple operations can be performed by a single
    //edit operation.
    var clipCutPlanarizeFeatures = new EditOperation();
    clipCutPlanarizeFeatures.Name = "Clip, Cut, and Planarize Features";
    clipCutPlanarizeFeatures.Clip(featureLayer, oid, clipPoly);
    clipCutPlanarizeFeatures.Split(featureLayer, oid, cutLine);
    clipCutPlanarizeFeatures.Planarize(featureLayer, oid);
    
    if (!clipCutPlanarizeFeatures.IsEmpty)
    {
      //Note: An edit operation is a single transaction. 
      //Execute the operations (in the order they were declared)
      clipCutPlanarizeFeatures.Execute(); //Execute and ExecuteAsync will return true if the operation was successful and false if not
    }
    
    //or use async flavor
    //await clipCutPlanarizeFeatures.ExecuteAsync();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also