Create Association Records (Utility Network Package)

Summary

Creates utility network associations between features based on defined utility network rules and data.

Usage

  • To define distance, add/populate the association_distance field in the B_Rules table. This value will be used as a search tolerance for features that match the rule. If this field does not exist, or the values are null, then a default of 5 units will be used. Rows with a negative association_distance will be excluded from processing.

Parameters

LabelExplanationData Type
Asset Package

The asset package that will be used to create associations.

Workspace

arcpy.pt.CreateUtilityNetworkAssociations(input_dataset)
NameExplanationData Type
input_dataset

The asset package that will be used to create associations.

Workspace

Code sample

CreateUtilityNetworkAssociations (Python window)

The following Python window script demonstrates how to use the CreateUtilityNetworkAssociations tool in immediate mode.

arcpy.pt.CreateUtilityNetworkAssociations(input_dataset=asset_package)
CreateUtilityNetworkAssociations (stand-alone script)

The following stand-alone script demonstrates how to use the CreateUtilityNetworkAssociations tool

# Name: CreateAssociationRecords.py
# Description: Creates new association records in the C_Association table in the asset package.

# Import required modules
import arcpy

# Local Variables
asset_package = "D:/data/Water_AssetPackage.gdb"

arcpy.pt.CreateUtilityNetworkAssociations(input_dataset=asset_package)

Environments

This tool does not use any geoprocessing environments.

Licensing information

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