Summary
Creates utility network associations between features based on defined utility network rules and data.
Usage
To define distance, add/populate a double field in the B_Rules table, "association_distance". This value will be used as a search tolerance for features that match the rule.
Syntax
arcpy.NOALIAS.CreateUtilityNetworkAssociations(input_dataset)
Name | Explanation | Data Type |
input_dataset | The asset package that will be used to create associations. | Workspace |
Asset Package
| The asset package that will be used to create associations. | Workspace |
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