Label | Explanation | Data Type |
Asset Package
| The asset package that will be used to create associations. | Workspace |
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
arcpy.pt.CreateUtilityNetworkAssociations(input_dataset)
Name | Explanation | Data Type |
input_dataset | The asset package that will be used to create associations. | Workspace |
Code sample
The following Python window script demonstrates how to use the CreateUtilityNetworkAssociations tool in immediate mode.
arcpy.pt.CreateUtilityNetworkAssociations(input_dataset=asset_package)
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