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
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})
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
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_management(Water_Net, "Distribmains", "Distribmains", "Fittings", "Tap", "DEFAULT", "0", "2", "0", "2")
Environments
This tool does not use any geoprocessing environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes