ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Editing Namespace / EditOperation Class / ConstructPolygons Method / ConstructPolygons(EditingTemplate,Layer,IEnumerable<Int64>,Nullable<Double>,LinearUnit,Boolean) Method
Editing template used to create the feature.
The layer of the source polylines.
The oids of the source polylines.
The cluster tolerance used while constructing polygons.
The linear unit of the cluster tolerance.
Include the boundaries of existing polygons as source polylines.

In This Topic
    ConstructPolygons(EditingTemplate,Layer,IEnumerable<Int64>,Nullable<Double>,LinearUnit,Boolean) Method
    In This Topic
    Constructs polygons in a template using the specified polylines.
    Syntax

    Parameters

    template
    Editing template used to create the feature.
    layer
    The layer of the source polylines.
    oids
    The oids of the source polylines.
    tolerance
    The cluster tolerance used while constructing polygons.
    toleranceUnit
    The linear unit of the cluster tolerance.
    autoComplete
    Include the boundaries of existing polygons as source polylines.
    Exceptions
    ExceptionDescription
    Template and layer cannot be null.
    Insufficient license. This method requires a standard license.
    Cluster tolerance unit is specified not null, but cluster tolerance is null.
    Remarks

    If the tolerance is null, then the default will be to use the template layer's spatial reference XY Tolerance.

    If the toleranceUnit is null, then the tolerance is assumed to be in the units of the template layer's spatial reference XY Tolerance.

    An ArgumentException will be thrown if tolerance is specified null, but toleranceUnit is specified non-null.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also