Summary
Adds a domain network to a utility network.
To learn more about adding a domain network, see Add a domain network.
Usage
The network topology must be disabled.
When working with an enterprise geodatabase the following are requirements:
- The Input Utility Network parameter value must be from a database connection established as the database utility network owner.
- The connected ArcGIS Enterprise portal account must be the portal utility network owner.
- This tool must be connected to the default version when executed.
Syntax
arcpy.un.AddDomainNetwork(in_utility_network, domain_network_name, tier_definition, subnetwork_controller_type, {domain_network_alias_name})
Parameter | Explanation | Data Type |
in_utility_network | The utility network to which the domain network will be added. | Utility Network; Utility Network Layer |
domain_network_name | The name of the new domain network. The domain network name will prefix the feature class names that are created. For example, a domain named ElectricDistribution would include a feature class named ElectricDistributionJunction. | String |
tier_definition | Specifies the tier definition for the new domain network.
| String |
subnetwork_controller_type | Specifies the subnetwork controller type for the new domain network.
| String |
domain_network_alias_name (Optional) | The alias name of the domain network. This optional parameter is used to give a more descriptive name to the domain network. | String |
Derived Output
Name | Explanation | Data Type |
out_utility_network | The updated utility network. | Utility Network |
Code sample
Add a domain network to the MyUtilityNetwork utility network named ElectricDistribution.
import arcpy
arcpy.AddDomainNetwork_un("MyUtilityNetwork", "ElectricDistribution",
"HIERARCHICAL", "SOURCE", "Electric Distribution")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes