TransferUtilityNetworkData

Title  Transfer Utility Network Data

Description

Merge the data from one or more asset packages to an asset package or utility network.

Usage

          
When data is being converted in chunks or by zone, use this tool to combine them into a single asset package or utility network.  The target network or asset package must have fields and classes from the input asset packages.

The results folder will contain a loader.py script, Append.csv and optionally a folder with associations and controller csvs.

If you select Run Script, you will not be able to control the order of operations.  If you want to change the order in which classes are processed, do not select Load Data.  Browse to the result folder and change the order of the rows in the Append.csv.

License

Standard

Syntax

TransferUtilityNetworkData (in_workspaces, in_network, output_folder, {run_script}, {version_name})

Parameter Explanation Data Type
in_workspaces Dialog Reference

The input asset packages who's data will be appended to the target network.

DEWorkspace
in_network Dialog Reference

The asset package or utility network in which the data from the input Asset Packages will we added to.

GPComposite
output_folder Dialog Reference

The location create a folder with the files, script and Append.csv files.

DEFolder
run_script (Optional) Dialog Reference

An option to run the script to load the data.

GPBoolean
version_name (Optional) Dialog Reference

The name of version to create or save inserts into.

GPString

Code Samples

TransferUtilityNetworkData example 1 (Python window)

add the data from source_ap1 and source_ap2 to target_ap

import arcpy

arcpy.udms.TransferUtilityNetworkData(
    [
        r"c:\temp\source_ap1.gdb",
        r"c:\temp\source_ap1.gdb",
    ],
    r"c:\temp\target_ap.gdb",
    r"c:\temp",
    run_script=True,
)

TransferUtilityNetworkData example 2 (stand-alone script)

add the data from source_ap1 and source_ap2 to target_un

import arcpy

asset_packages = [
    r"c:\temp\source_ap1.gdb",
    r"c:\temp\source_ap1.gdb",
]
in_network = r"c:\temp\target_un.geodatabase\network\utility_network"
output_folder = r"c:\temp"
run_script = True

arcpy.udms.TransferUtilityNetworkData(
    asset_packages=asset_packages,
    in_network=in_network,
    output_folder=output_folder,
    run_script=run_script,
)