ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetwork Class / CreateElement Method / CreateElement(Row) Method
The ArcGIS.Core.Data.Row used to create the Element.

In This Topic
    CreateElement(Row) Method
    In This Topic
    Creates an Element object, which represents a Row (or Row + Terminal) in a utility network. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Element CreateElement( 
       Row row
    )
    Public Overloads Function CreateElement( _
       ByVal row As Row _
    ) As Element

    Parameters

    row
    The ArcGIS.Core.Data.Row used to create the Element.

    Return Value

    An Element object corresponding to row in a utility network.
    Exceptions
    ExceptionDescription
    row is null.
    row is not part of any network source in a utility network.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    No default terminal is assigned.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also