Containment association rules constrain which types of features can be contained in a given type of feature (container). These rules are evaluated during the call to add associations (similar to junction-junction connectivity rules) and do not support terminals. If there is no rule to support the association, an error is returned. If modifications are made to the asset group and asset type attributes for a feature participating in a containment association, edits are evaluated against the existing rule base during enable or validate network topology operations.
Network rules are stored at the utility network level. This allows you to contain features from different domain networks in the same container feature, for example, gas pipes and water mains in the same trench.
The rule base for a utility network can be viewed in the network properties.
To create a containment association rule, the following requirements must be met:
- The network topology must be disabled.
- The container features must have the container association role assigned to allow other features to be contained.
- When working with an enterprise geodatabase, ensure the following:
Create a containment association rule
To create a containment association rule, complete the following steps:
- On the Analysis tab, in the Geoprocessing group, click Tools to open the Geoprocessing pane.
- In the Geoprocessing pane, search for and click Add Rule.
- For the Input Utility Network parameter, enter the utility network receiving the rule.
- From the Rule Type drop-down list, choose Containment.
- For the From Feature Class parameter, choose the container feature class.
- For the From Asset Group parameter, choose the asset group of the feature class.
- For the From Asset Type parameter, choose the asset type of the feature class.
- For the To Feature Class parameter, choose the content feature class.
- For the To Asset Group parameter, choose the asset group of the feature class.
- For the To Asset Type parameter, choose the asset type of the feature class.
- Click Run.
A containment association rule is added to your utility network's rule set. To reflect this change in your network, enable the network topology.
When working with an enterprise geodatabase, network rules are managed through a database connection to the default branch version. The utility network service should be stopped before you add or delete a network rule. Changes are acknowledged after the service and ArcGIS Pro session have been restarted. Updates to the utility network rules are not reflected in existing named versions until a reconcile operation is performed.