createElementWithAssetType method
- UtilityAssetType assetType, {
- required Guid globalId,
- 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