Apply Asset Package

Summary

Applies the domain network or networks, related layers, related tables, and properties of a utility network to an existing utility network.

Usage

  • This tool is additive. When run against a configured utility network, only the additions will be applied. Existing properties are not removed or changed.

  • The network topology must be disabled.

  • If using an enterprise geodatabase the following notes apply:

    • The connected ArcGIS Enterprise portal account must be the utility network owner.
    • The connected enterprise geodatabase user must be the utility network owner.
    • This tool should be executed when connected to the default version.

Syntax

AssetPackageToUtilityNetwork(asset_package, domain_networks, in_utility_network, {load_data}, {analyze}, {configurations}, {rename_field}, {post_process})
ParameterExplanationData Type
asset_package

The asset package that will be used to configure the schema and properties of a utility network.

Workspace
domain_networks
[domain_networks,...]

The domain networks in the asset package that will be applied to the utility network.

In python, * can be passed in to select all domain networks.

Multiple Value
in_utility_network

The utility network that will be configured with the asset package.

Utility Network
load_data
(Optional)

Defines if data in the asset package is loaded into the utility network.

  • INCLUDE_DATA - Appends the data from all feature classes and tables, and imports associations and subnetwork controllers.
  • SCHEMA_ONLY - Only the schema of the utility network is applied. This is the default.
Boolean
analyze
(Optional)

If loading data into the utility network, this provides the option to calculate the spatial index and analyze the utility network. For certain enterprise database platforms, this can improve performance during enable topology. This parameter is applicable when creating a utility network in an enterprise geodatabase.

  • ANALYZE - Calculates spatial index on all feature classes and analyzes the feature dataset. This is the default.
  • NO_ANALYZE - Will not calculate the spatial index on the feature classes.
Boolean
configurations
(Optional)

Select the configuration options you want to apply to your utility network. This parameter is applicable when a D_Configurations table is present in your asset package.

In python, * can be passed in to select all configurations.

Multiple Value
rename_field
[rename_field,...]
(Optional)

Select the rename option you want to apply to your utility network. This parameter is applicable when the D_Rename table is present in your asset package.

String
post_process
(Optional)

Post process runs three processes to enable topology, update subnetworks and update Is Connected. This parameter is applicable when creating a utility network in a file geodatabase.

  • POST_PROCESS - Enable network topology, update all subnetworks, and update Is Connected will be performed.
  • NO_POST_PROCESS - No network updates will be made. This is the default.
Boolean

Code sample

AssetPackageToUtilityNetwork example (Python window)

Applies an asset package to a utility network.

arcpy.pt.AssetPackageToUtilityNetwork("C:/data/Water_AssetPackage.gdb", "C:/data/connection.sde/gis.SYSTEM/gis.WaterNetwork", "Structure;Water")
AssetPackageToUtilityNetwork (stand-alone script)

Applies an asset package to a utility network.

# Name: Apply_AssetPackage.py
# Description: Applies the asset package schema to the utility network
 
# Import system modules
import arcpy
 
# Set local variables
asset_package = "C:/data/Water_AssetPackage.gdb"
utility_network = "C:/data/connection.sde/gis.SYSTEM/gis.WaterNetwork"
domain_networks = ["Structure", "Water"]
load = False
analyze = False
configure = ["integrity", "compliance"]
rename = "Portuguese" 


# Apply the schema
arcpy.pt.AssetPackageToUtilityNetwork(asset_package, utility_network, domain_networks, load, analyze, configure, rename)

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes
Top