Demonstrates the creation of a simple electric distribution report. It traces downstream from a given point and adds up the count of customers and total load per phase.
You can use a load report to display the customers per phase as well as the load per phase based on a chosen starting point in a utility network. Load reports are used for electric load restoration and balancing.
Choose phases to be included in the report. Tap 'Run Report' to initiate a downstream trace on the network and create a load report. Tap 'Reset' to clear the phases and start over.
- Create and load a
UtilityNetwork
with a feature service URL, then get an asset type, tier, network attributes, and category by their names. - Create a
UtilityElement
from the asset type to use as the starting location for the trace. - Get a base condition from the
UtilityTier.TraceConfiguration.Traversability.Barriers
. - Create
UtilityTraceParameters
passing inUtilityTraceType.downstream
and the default starting location. Set itsUtilityTraceConfiguration
with theUtilityTier.traceConfiguration
. - Create a
UtilityCategoryComparison
where"Service Point"
category exists. - Reset
UtilityTraceConfiguration.functions
with a newUtilityTraceFunction
adding aService Load
network attribute where this category comparison applies. This will limit the function results. - Set
UtilityTraceConfiguration.outputCondition
with this category comparison to limit the element results. - Populate the choice list for
Phases
using the network attribute'sCodedValueDomain.codedValues
. - When the "Add Phase" button is clicked, add the selected
CodedValue.name
to a phases list. - When the "Run Report" button is clicked, run a trace for every
CodedValue
in the phases list. Do this by creating aUtilityTraceOrCondition
with the base condition and aUtilityNetworkAttributeComparison
where the "Phases Current" network attribute does not include theCodedValue.code
value. - Display the count of "Total Customers" using
UtilityElementTraceResult.elements
and the result of "Total Load", the first and onlyUtilityFunctionTraceResult.functionOutputs
.
- UtilityAssetType
- UtilityCategoryComparison
- UtilityDomainNetwork
- UtilityElement
- UtilityElementTraceResult
- UtilityNetwork
- UtilityNetworkAttribute
- UtilityNetworkAttributeComparison
- UtilityNetworkDefinition
- UtilityNetworkSource
- UtilityTerminal
- UtilityTier
- UtilityTraceConfiguration
- UtilityTraceFunction
- UtilityTraceParameters
- UtilityTraceResult
- UtilityTraceType
- UtilityTraversability
The Naperville electrical network feature service, hosted on ArcGIS Online, contains a utility network used to run the subnetwork-based trace shown in this sample.
Using utility network on ArcGIS Enterprise 10.8 requires an ArcGIS Enterprise member account licensed with the Utility Network user type extension. Please refer to the utility network services documentation.
condition barriers, downstream trace, network analysis, subnetwork trace, trace configuration, traversability, upstream trace, utility network, validate consistency