Association Source properties

Zusammenfassung

The following properties are supported by the associationSource object in a utility network.

Eigenschaften

EigenschaftErläuterungDatentyp
name
(Schreibgeschützt)

The name of the association network source.

String
sourceID
(Schreibgeschützt)

The association network source ID.

Integer
sourceType
(Schreibgeschützt)

The type of association network source.

String

Codebeispiel

Utility network association source properties example (stand-alone script)

This stand-alone Python script prints a report of some utility network properties.

'''****************************************************************************
Name:        DescribeUtilityNetworkProperties.py
Description: This script reports the properties of a utility network
Created by:  Esri
****************************************************************************'''

# Import required modules
import arcpy

# Describe function on a Utility Network
UN = "C:\\MyProject\\databaseConn.sde\\mygdb.USER1.Naperville\\mygdb.USER1.ElectricNetwork"
d = arcpy.Describe(UN)

# Association source properties
asources = d.associationSource
print("Association Sources properties")
print(f"Name: {asources.name}")
print(f"ID: {asources.sourceID}")
print(f"Type: {asources.sourceType} \n")