Valid Edge Objects properties

サマリー

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

プロパティ

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

The asset group code of the valid edge object.

Integer
assetTypes
(読み取り専用)

The assetTypes object. This object can be used to retrieve the assetTypeCode of the valid edge object's asset types. The assetTypeCode is the integer value of the asset type code of the valid edge object.

Object

コードのサンプル

Utility network valid edge objects properties (stand-alone script)

Retrieve the asset type code for the assetTypes object for a valid edge object.

# 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:
    # For each tier in the domain network
    for tier in dom.tiers:
        # Print the valid edge object Properties        
        for veo in tier.validEdgeObjects:
            print(" -- Valid Edge Object Properties -- ")
            print("Asset Group Code: {0} \n".format(veo.assetGroupCode))
            print(" - Asset Type Properties - ")
            for at in veo.assetTypes:

                print("Asset Type Code: {0}".format(at.assetTypeCode))