Hello,
I'm working on writing tools/scripts to update subnetworks in our Utility Network implementation. I want to test different ways to do that and one is by custom SOE.
I wanted to use the IUtilityNetworkSubnetwork interface but I cannot find the proper way to implement the logic. Here is my code:
IBaseNetwork baseNetwork = unDefinition.BaseNetwork;
IUtilityNetworkCore unCoreNetwork = (IUtilityNetworkCore)baseNetwork;
IUtilityNetworkSubnetwork subnetworks = (IUtilityNetworkSubnetwork)unCoreNetwork;
IUNSubnetworkManager subnetworkManager = subnetworks.CreateSubnetworkManager();
foreach (string subnetworkName in subnetworkNames)
{
subnetworkManager.UpdateSubnetwork(prop_domainNetworkName, prop_tierName, false, subnetworkName, continueOnFailure, asynchronous, null);
}
Line 9 from above throws this exception:
TabletPC inking error code. Initialization failure (0x80040223) (extended code: -2147220957)
I think it may be because I'm passing null for the last parameter (ESRI.ArcGIS.esriSystem.ITrackCancel), but I'm not sure how to initialize that interface.
Can someone explain more about how to use the ITrackCancel interface?
Our system:
ArcGIS Enterprise 11.5; ArcGIS Pro 3.5; Utility Network v7; PostgreSQL 15
Thank you,
Bogdan