Aggregated Lines for SubnetLine properties

サマリー

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

Learn more about subnetworks

プロパティ

プロパティ説明データ タイプ
assetGroupCode
(読み取り専用)

The asset group code of the aggregated line for the SubnetLine class.

Integer
assetTypes
(読み取り専用)

The assetTypes object. This object can be used to retrieve the assetTypeCode of the aggregated line's asset types. The assetTypeCode is the integer value of the asset type code of the aggregated line for the SubnetLine class.

Object

コードのサンプル

Utility network aggregated lines for subnetline properties example (stand-alone script)

Retrieve the asset type code for the assetTypes object for an aggregated line.

# Import required modules
import arcpy

# Describe functions on a Utility Network
UN = "C:\\Projects\\MyProject\\unowner.sde\\Naperville.UNOWNER.Naperville\\Naperville.UNOWNER.Naperville" 
d = arcpy.Describe(UN)

# Domain Network properties
domnets = d.domainNetworks

# For each domain network in the utility network
for dom in domnets:
    print(f"Domain Network Name: {dom.domainNetworkName}")
    
    # For each tier in the domain network
    for tier in dom.tiers:
        print(f"Tier Name: {tier.name}")
                
        # Aggregated Lines for SubnetLine Properties        
        for al in tier.aggregatedLinesForSubnetLine:
            print(" -- Aggregated Lines for SubnetLine Properties -- ")
            print(f"Asset Group Code: {al.assetGroupCode} \n")
            print(" - Asset Type Properties - ")
            for at in al.assetTypes:
                print(f"Asset Type Code: {at.assetTypeCode} \n")