createElementWithAssetType method

UtilityElement createElementWithAssetType(
  1. UtilityAssetType assetType, {
  2. required Guid globalId,
  3. UtilityTerminal? terminal,
})

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.

Parameters:

  • assetType — The UtilityAssetType of the feature from which this feature element is created.
  • globalId — The GlobalID of the feature from which this feature element is created.
  • terminal — The UtilityTerminal.

Return Value: A new UtilityElement object