Add Edge-Junction Connectivity Rule To Geometric Network (Data Management)

License Level:BasicStandardAdvanced

Summary

Adds an edge-junction connectivity rule to a geometric network.

Usage

Syntax

AddEdgeJunctionConnectivityRuleToGeometricNetwork_management (in_geometric_network, in_edge_feature_class, edge_subtype, in_junction_feature_class, junction_subtype, {default_junction}, {edge_min}, {edge_max}, {junction_min}, {junction_max})
ParameterExplanationData Type
in_geometric_network

The geometric network to which the connectivity rule will be added.

Geometric Network
in_edge_feature_class

The name of the edge feature class.

String
edge_subtype

The subtype description for the edge feature class. If subtypes do not exist on the feature class, use the feature class name.

String
in_junction_feature_class

The name of the junction feature class.

String
junction_subtype

The subtype description for the junction feature class. If subtypes do not exist on the feature class, use the feature class name.

String
default_junction
(Optional)

Indicates if the junction specified in this rule will be created automatically at a dangling endpoint of an edge in the feature class specified as part of the rule.

  • DEFAULTCreate a junction at a dangling endpoint of edges for this rule.
  • NO_ DEFAULTDo not create a junction at a dangling endpoint of edges for this rule. This is the default.
Boolean
edge_min
(Optional)

The minimum number of edges that can connect to each junction. If nothing is specified, then it will be valid to have any number of edges connected to a single junction for the feature class or subtype pair.

Long
edge_max
(Optional)

The maximum number of edges that can connect to each junction. If nothing is specified, then it will be valid to have any number of edges connected to a single junction for the feature class or subtype pair.

Long
junction_min
(Optional)

The minimum number of junctions that can connect to each edge. If nothing is specified, then it will be valid to have any number of junctions connected to a single edge for the feature class or subtype pair.

Long
junction_max
(Optional)

The maximum number of junctions that can connect to each edge. If nothing is specified, then it will be valid to have any number of junctions connected to a single edge for the feature class or subtype pair.

Long

Code Sample

AddEdgeJunctionConnectivityRuleToGeometricNetwork example (stand-alone script)

The following stand-alone Python script demonstrates how to use the AddEdgeJunctionConnectivityRuleToGeometricNetwork in Python script to add an edge-junction connectivity rule with cardinality to a geometric network.

# Import arcpy module
import arcpy

# Local variables:
Water_Net = "C:\\testing\\GeometricNetworks\\Montgomery.gdb\\Water\\Water_Net"

# Process: Add Edge-Junction Connectivity Rule To Geometric Network
arcpy.AddEdgeJunctionConnectivityRuleToGeometricNetwork(Water_Net, "Distribmains", "Distribmains", "Fittings", "Tap", "DEFAULT", "0", "2", "0", "2")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013