Add Edge-Junction Connectivity Rule To Geometric Network (Data Management)
Summary
Adds an edge-junction connectivity rule to a geometric network.
Usage
-
The feature classes specified must reside in the geometric network.
-
If the edge or junction feature class has subtypes and connectivity rules for multiple subytpes are required, each rule must be added separately.
-
Default junctions are automatically inserted at the free end point when creating new edge features in a network. Only one default junction is allowed per edge-junction rule.
Syntax
Parameter | Explanation | Data 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.
| 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
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")