IDEUtilityNetwork Interface
Provides access to members that supply utility network data element information.
Members
Name | Description | |
---|---|---|
![]() |
Categories | Returns the categories of the utility network. The 'Subnetwork Source' and 'Subnetwork Sink' categories are always included. |
![]() |
DomainNetworks | Returns the array of domain networks in this utility network. |
![]() |
ServiceTerritoryFeatureClassName | Returns the service territory feature class name. |
![]() |
ServiceTerritoryFeatureLayerID | Returns the service territory feature layer ID. |
![]() |
SystemJunctionObjectSource | Returns the system junction object source in this utility network. |
![]() |
TerminalConfigurationByID | Returns the terminal configuration by ID. |
![]() |
TerminalConfigurations | Returns the array of terminal configurations in the utility network. |
IDEUtilityNetwork.Categories Property
Returns the categories of the utility network. The 'Subnetwork Source' and 'Subnetwork Sink' categories are always included.
Public ReadOnly Property Categories As IArray
public IArray Categories {get;}
IDEUtilityNetwork.DomainNetworks Property
Returns the array of domain networks in this utility network.
Public ReadOnly Property DomainNetworks As IArray
public IArray DomainNetworks {get;}
IDEUtilityNetwork.ServiceTerritoryFeatureClassName Property
Returns the service territory feature class name.
Public ReadOnly Property ServiceTerritoryFeatureClassName As String
public string ServiceTerritoryFeatureClassName {get;}
Remarks
The following code shows how to retrieve the service territory layer ID based on the feature class name:
// The following code shows how to retrieve the service territory layer ID based on the feature class name
int unServiceTerritoryLayerID = -1;
// Get the service territory feature class name
IDatasetComponent dsComponent = (IDatasetComponent)unDataset;
IDEDataset dataElement = dsComponent.DataElement;
IDEBaseNetwork bnDataElement = (IDEBaseNetwork)dataElement;
IDEUtilityNetwork unDataElement = (IDEUtilityNetwork)bnDataElement;
string unTerritoryFCName = unDataElement.ServiceTerritoryFeatureClassName;
// Get all layers from map service
IMapServer ms = (MapServer)serverObjectHelper.ServerObject;
IMapServerDataAccess mapServerDataAccess = (IMapServerDataAccess)serverObjectHelper.ServerObject;
IMapServerInfo mapServerInfo = ms.GetServerInfo(ms.DefaultMapName);
IMapLayerInfos layerInfos = mapServerInfo.MapLayerInfos;
// Loop through layers and get the feature class for which name corresponds to the service territory's
for (int i = 0; i < layerInfos.Count; i++)
{
IMapLayerInfo layerInfo = layerInfos.Element[i];
if (layerInfo.Type.Equals("Feature Layer", StringComparison.OrdinalIgnoreCase))
{
IFeatureClass fc = (IFeatureClass)mapServerDataAccess.GetDataSource(ms.DefaultMapName, layerInfo.ID);
IDataset ds = (IDataset)fc;
if(ds.Name == unDataElement.ServiceTerritoryFeatureClassName)
{
unServiceTerritoryLayerID = layerInfo.ID;
break;
}
}
}
IDEUtilityNetwork.ServiceTerritoryFeatureLayerID Property
Returns the service territory feature layer ID.
Public ReadOnly Property ServiceTerritoryFeatureLayerID As Integer
public int ServiceTerritoryFeatureLayerID {get;}
Remarks
For internal use only. This property will always return -1 when called from the Enterprise SDK. The service territory feature class name (IDEUtilityNetwork::ServiceTerritoryFeatureClassName) should instead be used to retrieve the layer ID.
IDEUtilityNetwork.SystemJunctionObjectSource Property
Returns the system junction object source in this utility network.
Public ReadOnly Property SystemJunctionObjectSource As INetworkSource
public INetworkSource SystemJunctionObjectSource {get;}
IDEUtilityNetwork.TerminalConfigurationByID Property
Returns the terminal configuration by ID.
Public Function get_TerminalConfigurationByID ( _
ByVal ID As Integer _
) As ITerminalConfiguration
public ITerminalConfiguration get_TerminalConfigurationByID (
int ID
);
IDEUtilityNetwork.TerminalConfigurations Property
Returns the array of terminal configurations in the utility network.
Public ReadOnly Property TerminalConfigurations As IArray
public IArray TerminalConfigurations {get;}
Classes that implement IDEUtilityNetwork
Classes | Description |
---|