Valid Junction Object Subnetwork Controller properties
Summary
The properties below are returned by the validJunctionObjectSubnetworkControllers object when using Describe on a utility network.
Properties
| Property | Explanation | Data Type |
|---|---|---|
|
assetGroupCode (Read only) |
The asset group code of the valid junction object subnetwork controller. |
Integer |
|
assetTypes (Read only) |
The |
Object |
Code sample
Utility network valid junction object subnetwork controller properties (stand-alone script)
Retrieve the asset type code for the assetTypes object for a valid junction object subnetwork controller.
# 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))