ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / PolygonBuilderEx Class / SplitAtDistance Method
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
    SplitAtDistance Method (PolygonBuilderEx)
    In This Topic
    Introduces a new vertex into the last part of this polyline at a specified distance from the beginning of the polyline. For a split to happen, the split distance must be between the From and To points of the polycurve. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int SplitAtDistance( 
       double distance,
       bool asRatio,
       bool createPart
    )
    Public Function SplitAtDistance( _
       ByVal distance As Double, _
       ByVal asRatio As Boolean, _
       Optional ByVal createPart As Boolean _
    ) As Integer

    Parameters

    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.
    Remarks
    createPart must be FALSE for polygons. For polylines, if createPart is TRUE, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.

    Split At Distance

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also