ArcGIS Pro 2.7 API Reference Guide
CreateElement(Row,Terminal) Method

ArcGIS.Core.Data.UtilityNetwork Namespace > UtilityNetwork Class > CreateElement Method : CreateElement(Row,Terminal) Method
The ArcGIS.Core.Data.Row used to create the Element.
The terminal used to create the Element.
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,
   Terminal terminal
)
Public Overloads Function CreateElement( _
   ByVal row As Row, _
   ByVal terminal As Terminal _
) As Element

Parameters

row
The ArcGIS.Core.Data.Row used to create the Element.
terminal
The terminal 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.

-or-

If terminal is not null and is not a member of the TerminalConfiguration of AssetType corresponding to row.

A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UtilityNetwork Class
UtilityNetwork Members
Overload List