属性
属性 | 说明 | 数据类型 |
assetGroupCode (只读) | 有效交汇点对象子网控制器的资产组代码。 | Integer |
assetTypes (只读) | assetTypes 对象。 此对象可用于检索有效交汇点对象子网控制器资产类型的 assetTypeCode。 assetTypeCode 为有效交汇点对象子网控制器资产类型代码的整数值。 | Object |
代码示例
检索有效交汇点对象子网控制器的 assetTypes 对象的资产类型代码。
# 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 junction object subnetwork controller Properties
for vjosc in tier.validJunctionObjectSubnetworkControllers:
print(" -- Valid Junction Object Subnetwork Controller Properties -- ")
print("Asset Group Code: {0} \n".format(vjosc.assetGroupCode))
print(" - Asset Type Properties - ")
for at in vjosc.assetTypes:
print("Asset Type Code: {0}".format(at.assetTypeCode))