createElementOrNull

fun createElementOrNull(arcGISFeature: ArcGISFeature, terminal: UtilityTerminal? = null): UtilityElement?

Creates an UtilityElement from a feature and an optional UtilityTerminal. If the optional UtilityTerminal is not supplied, and the feature's UtilityAssetType supports an UtilityTerminalConfiguration, a default UtilityTerminal will be assigned.

This method will return null if the input feature does not belong to this utility network or a supplied terminal does not belong to the feature's asset type.

Return

A new UtilityElement object, or null

Since

200.1.0

Parameters

arcGISFeature

the Feature from which this UtilityElement is to be created

terminal

the terminal for a junction feature


fun createElementOrNull(assetType: UtilityAssetType, globalId: Guid, terminal: UtilityTerminal? = null): UtilityElement?

Creates an UtilityElement from an UtilityAssetType, a GlobalID, and an optional UtilityTerminal. If the optional UtilityTerminal is not supplied, and the feature's UtilityAssetType supports an UtilityTerminalConfiguration, a default UtilityTerminal will be assigned.

This method will return null if the asset type does not belong to this utility network or a supplied terminal does not belong to the feature's asset type.

Return

A new UtilityElement object, or null

Since

200.1.0

Parameters

assetType

the asset type of the Feature from which this UtilityElement is created

globalId

the global ID of the Feature from which this UtilityElement is to be created

terminal

the terminal for a junction feature