Résumé
The properties below are returned by the tierGroups object when using Describe on a utility network.
Propriétés
Propriété | Explication | Type de données |
creationTime (Lecture seule) | The creation time of the tier group. | String |
name (Lecture seule) | The name of the tier group. | String |
Exemple de code
This stand-alone Python script prints a report of some utility network properties.
# 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)
# Domain Network properties
domnets = d.domainNetworks
for dom in domnets:
# Tier Group properties
for tierGroup in dom.tierGroups:
print(f"*** - Tier Group properties - ***")
print(f"Tier Group Name: {tierGroup.name}")
print(f"Tier Group Creation Time: {tierGroup.creationTime}")
Vous avez un commentaire à formuler concernant cette rubrique ?