ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / Divide Method
Element to divide.
Number of units for each divided element.

In This Topic
    Divide Method
    In This Topic
    Divide the element. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public DivideResult Divide( 
       GroupedElement groupedElement,
       IEnumerable<short> numUnitsToDivide
    )
    Public Function Divide( _
       ByVal groupedElement As GroupedElement, _
       ByVal numUnitsToDivide As IEnumerable(Of Short) _
    ) As DivideResult

    Parameters

    groupedElement
    Element to divide.
    numUnitsToDivide
    Number of units for each divided element.

    Return Value

    Information about the divided elements.
    Exceptions
    ExceptionDescription
    The input element or list of numUnits is not valid.
    groupedElement and/or numUnitsToDivide is null.
    This operation must be called within an edit operation. For stand-alone CoreHost applications, wrap this call within ArcGIS.Core.Data.Geodatabase.ApplyEdits.
    A geodatabase-related exception has occurred.
    Remarks
    For stand-alone CoreHost applications, calls to this method should be enclosed within a call to ArcGIS.Core.Data.Geodatabase.ApplyEdits.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also