ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / PolygonBuilderEx Class / SplitPartAtDistance Method
0 based index of the part. Last part is PartCount - 1.
the distance from the From point to insert the vertex.
True to treat the distance as a ratio (or %) of the part length.
(Optional) Specifies whether a new part is to be created when the part is split. The default value is false.

In This Topic
    SplitPartAtDistance Method (PolygonBuilderEx)
    In This Topic
    Introduces a new vertex point to the part specified by partIndex at a specified distance from the From point of the curve. For a split to happen, the split distance must be between the From and To points of the part. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int SplitPartAtDistance( 
       int partIndex,
       double distance,
       bool asRatio,
       bool createPart
    )
    Public Function SplitPartAtDistance( _
       ByVal partIndex As Integer, _
       ByVal distance As Double, _
       ByVal asRatio As Boolean, _
       Optional ByVal createPart As Boolean _
    ) As Integer

    Parameters

    partIndex
    0 based index of the part. Last part is PartCount - 1.
    distance
    the distance from the From point to insert the vertex.
    asRatio
    True to treat the distance as a ratio (or %) of the part length.
    createPart
    (Optional) Specifies whether a new part is to be created when the part is split. The default value is false.

    Return Value

    The new segment index.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The distance is less than zero.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also