Skip To Content

Set Edge Connectivity

Summary

Defines how features will connect to a line of a given asset type.

There are two locations where point features can connect to lines: an end point or a midspan vertex. Each asset type in the domain network is set with a default edge connectivity setting.

Usage

  • Some network configuration tasks can only be performed prior to the network topology being enabled for the first time. Review Network topology actions for tasks specific to this tool and the required network topology state.

  • The network topology must be disabled.

  • The connected ArcGIS Enterprise portal account must be the portal utility network owner.

  • This tool should be executed when connected to the default version.

  • The input utility network must be from a database connection established as the database utility network owner.

Syntax

SetEdgeConnectivity(in_utility_network, domain_network, line_featureclass, assetgroup, assettype, edge_connectivity)
ParameterExplanationData Type
in_utility_network

The utility network that contains the asset type with the edge connectivity to set.

Utility Network; Utility Network Layer
domain_network

The domain network that contains the asset type with the edge connectivity to set.

String
line_featureclass

The name of the line feature class that contains the asset type with the edge connectivity to set.

String
assetgroup

The asset group that contains the asset type with the edge connectivity to set.

String
assettype

The asset type that needs the edge connectivity set.

String
edge_connectivity

The edge connectivity type to assign to the asset type.

  • ANY_VERTEXAllows features to connect anywhere along the line where a vertex is present including end vertices.
  • END_VERTEXAllows features to only connect to the end vertex of the line.
String

Derived Output

NameExplanationData Type
out_utility_network

The updated utility network.

Utility Network

Code sample

SetEdgeConnectivity example 1 (Python window)

Alter the edge connectivity policy for the underground asset type in the Electric Distribution domain network to any vertex.

import arcpy
arcpy.SetEdgeConnectivity_un("Utility Network", "ElectricDistribution", 
                             "ElectricDistributionLine", "Low Voltage", 
                             "Underground", "AnyVertex")
SetEdgeConnectivity example 2 (Python window)

Alter the edge connectivity policy for the connector asset type in the Electric Distribution domain network to end vertex.

import arcpy
arcpy.SetEdgeConnectivity_un("Utility Network", "ElectricDistribution", 
                             "ElectricDistributionLine", "Connector", 
                             "Connector", "EndVertex")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics