System Junction Source properties

Zusammenfassung

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

Eigenschaften

EigenschaftErläuterungDatentyp
name
(Schreibgeschützt)

The name of the system junction source.

String
sourceID
(Schreibgeschützt)

The ID of the system junction source.

Integer
sourceType
(Schreibgeschützt)

The type of the system junction source.

String

Codebeispiel

Utility network system junction 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)

# System junction source properties
sjsources = d.systemJunctionSource
print("*** - System Junction Source properties - ***")
print(f"Name: {sjsources.name}")
print(f"ID: {sjsources.sourceID}")
print(f"Type: {sjsources.sourceType} \n")