Category properties

Zusammenfassung

The properties below are returned by the categories object when using Describe on a utility network.

Eigenschaften

EigenschaftErläuterungDatentyp
creationTime
(Schreibgeschützt)

The creation time of the category.

String
name
(Schreibgeschützt)

The name of the category.

String

Codebeispiel

Utility network categories 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)

# Categories properties
categories = d.categories
for cat in categories:
    print("*** - Categories properties - ***")
    print(f"Category creation time: {cat.creationTime}")
    print(f"Category Name: {cat.name} \n")