Select to view content in your preferred language

Network Diagram

475
8
3 weeks ago
sonj
by
Occasional Contributor

We plan to design a Network Diagram to see all switch status (open/close) connected to the medium voltage. Please guide me on how to configure on Pro 2.9 NapervilleElectricSDKData.gdb.

0 Kudos
8 Replies
sonj
by
Occasional Contributor

I tried to build a model but it is not working.model.png

0 Kudos
JohnAlsup
Esri Contributor

In the Electric Foundation, we included a Distribution Switching in the Diagrams configuration.  Does this not provide the type of diagram you looking for?

John Alsup
jalsup@esri.com
0 Kudos
sonj
by
Occasional Contributor

It is a similar diagram. We wanted to understand how it is configured based on that we have other plans to build different diagrams.

0 Kudos
gis_KIWI4
Frequent Contributor

@sonj  Could you talk us through what the output is and how it’s different from what you are hoping to achieve?

0 Kudos
JohnAlsup
Esri Contributor

I have attached the python script used to create the Switching Diagram for the Electric Foundation.

John Alsup
jalsup@esri.com
0 Kudos
sonj
by
Occasional Contributor

Thanks@JohnAlsup, for sharing the Python script. We tried to replicate it, but we haven't succeeded. Please help us understand what went wrong. The revised diagram was created once all medium voltage switches, medium voltage conductors, and busbar lines were chosen.

0 Kudos
JohnAlsup
Esri Contributor

First, I think the symbology you are using in your map is just the default simple, which means you aren't using a map where you have defined symbology.

Second, I'm guessing the trace you are using is returning all features, transformers, etc, which will make the diagram very congested.  

Here are two images.  The first one is the diagram produced by the diagram code I sent you.

JohnAlsup_0-1745322148021.png

The second image is from a diagram template named Electric Distribution Circuit Switching.

JohnAlsup_1-1745322215170.png

The trace I used is below and I placed the start point on the Circuit Breaker for RMT003

arcpy.un.Trace(
in_utility_network="Network Utility Network",
trace_type="SUBNETWORK",
starting_points=r"C:\Projects\Electric_Updates\Electric_Updates\Default.gdb\UN_Temp_Starting_Points",
barriers=r"C:\Projects\Electric_Updates\Electric_Updates\Default.gdb\UN_Temp_Barriers",
domain_network="Electric",
tier="Electric Distribution",
target_tier="",
subnetwork_name="",
shortest_path_network_attribute_name="",
include_containers="INCLUDE_CONTAINERS",
include_content="INCLUDE_CONTENT",
include_structures="INCLUDE_STRUCTURES",
include_barriers="INCLUDE_BARRIERS",
validate_consistency="VALIDATE_CONSISTENCY",
condition_barriers="'E:Operating Status Normal' IS_EQUAL_TO SPECIFIC_VALUE 1 OR;'Lifecycle Status' DOES_NOT_INCLUDE_ANY SPECIFIC_VALUE 6 OR;Category IS_EQUAL_TO SPECIFIC_VALUE E:Ground OR;Category IS_EQUAL_TO SPECIFIC_VALUE 'E:Open Point' OR;'E:Operating Status Normal' IS_EQUAL_TO SPECIFIC_VALUE 2 #",
function_barriers=None,
traversability_scope="BOTH_JUNCTIONS_AND_EDGES",
filter_barriers=None,
filter_function_barriers=None,
filter_scope="BOTH_JUNCTIONS_AND_EDGES",
filter_bitset_network_attribute_name="",
filter_nearest="DO_NOT_FILTER",
nearest_count=None,
nearest_cost_network_attribute="",
nearest_categories=None,
nearest_assets=None,
functions=None,
propagators="'E:Phases Propagated' # PROPAGATED_BITWISE_AND INCLUDES_ANY 7",
output_assettypes=None,
output_conditions="Category IS_EQUAL_TO SPECIFIC_VALUE E:Switch OR;Category IS_EQUAL_TO SPECIFIC_VALUE E:Cable #",
include_isolated_features="EXCLUDE_ISOLATED_FEATURES",
ignore_barriers_at_starting_points="DO_NOT_IGNORE_BARRIERS_AT_STARTING_POINTS",
include_up_to_first_spatial_container="DO_NOT_INCLUDE_UP_TO_FIRST_SPATIAL_CONTAINER",
result_types=None,
selection_type="NEW_SELECTION",
clear_all_previous_trace_results="CLEAR_ALL_PREVIOUS_TRACE_RESULTS",
trace_name="",
aggregated_points="Trace_Results_Aggregated_Points",
aggregated_lines="Trace_Results_Aggregated_Lines",
aggregated_polygons="Trace_Results_Aggregated_Polygons",
allow_indeterminate_flow="TRACE_INDETERMINATE_FLOW",
validate_locatability="DO_NOT_VALIDATE_LOCATABILITY",
use_trace_config="DO_NOT_USE_TRACE_CONFIGURATION",
trace_config_name="",
out_json_file=None,
run_async="RUN_SYNCHRONOUSLY",
include_geometry="EXCLUDE_GEOMETRY",
include_domain_descriptions="EXCLUDE_DOMAIN_DESCRIPTIONS",
result_network_attributes=None,
result_fields=None,
use_digitized_direction="IGNORE_DIGITIZED_DIRECTION",
synthesize_geometries="DO_NOT_SYNTHESIZE_GEOMETRIES"
)

 

John Alsup
jalsup@esri.com
0 Kudos
AnneYvonneBlin
Esri Contributor

@sonj 

I guess the NapervilleElectricSDKData.gdb geodatabase you are talking about is the one coming with https://github.com/Esri/arcgis-pro-sdk-community-samples/releases/download/3.3.0.52636/CommunitySamp...

In this case, please have a look to the NapervilleElectricSDK_CustomTemplates toolbox referenced in the related project (Data\SDKSampleNetwork\SDKSampleNetwork.aprx).
The CircuitSwitching_FromMediumCB model builder under this toolbox is the one we used to configure the template of the same name, CircuitSwitching_FromMediumCB.
This template allows to generate diagrams focusing on critical devices such as switches. It is configured to start diagram creations from medium voltage subnetwork controllers that users select as inputs (that is, from medium voltage circuit breakers, medium voltage transformer banks or low voltage network protections). Then it uses these inputs as starting points to trace the related medium voltage subnetwork. Next, it chains a sequence of diagram rules to simplify the diagram graph and so mainly focus on the critical devices.

In details, diagrams based on this template are configured to be created thanks to the following diagram rule sequence:

CircuitSwitching_FromMediumCB1.png
(1) A set of Remove Feature rules so that, among all the potential input users provide for the diagram generation, the diagram builder keeps the only medium voltage subnetwork controllers (= medium voltage circuit breakers, medium voltage transformer banks or low voltage network protections).
(2) Set Starting Point rules to set each remaining medium voltage subnetwork controller as starting points
(3) A Trace rule configured to run a subnetwork trace from those starting points
(4) Add Diagram Feature Capability rules to flag any switches at the frontier of multiple subnetworks and subnetwork controller from being collapsed and a Collapse Containers rule to collapse any other structure junction and assembly containers

CircuitSwitching_FromMediumCB2.png
(5) A set of Reduce Junction rules to reduce any structure junctions, any electric junctions, any system junctions, any electric devices excetped subnetwork controllers and switches, and any electric assemblies excepted siwtch banks as much as possible
(6) The diagram graph resulting from all these rules is then laid out using to the Grid layout, then applying a few Reshape Diagram Edges operations.

To learn more about network diagram building process and diagram template configurations, you can also watch the following videos: Network Diagram Build Process Demo and Essential Network Diagram Workflows.

Note that these sample template settings fit the NapervilleElectricSDKData.gdb database schema, but can be modified to fit other datasets for which the asset type/group, subnetwork controller definition are different.

 

0 Kudos