Skip to main content
2 of 5
naming
Vince
  • 20.3k
  • 16
  • 48
  • 65

How to detect geometric network issues (exhaustive check within extent), and repair them using ArcObjects

I am trying to use this tool which can be found in the ArcToolBox under data managment, geometric network

enter image description here

I need to access this tool using ArcObjects because I have loaded features into their respective feature classes, and I would like to run an exauhstive check on their geometric network status using the extent.

I came across IGeometricNetworkConnectivity2, and I can use it on each feature class seperatly, but it does not allow me to do an exaustive search or use an extent for that matter, it will run on the entire . Here a sample of where I am at now

var ftrClass =LoadFeatureClass(shapeFileObject)
var netWorkGeo = ftrClass as INetworkClass;
var nWCheck=(IGeometricNetworkConnectivity2)netWorkGeo.GeometricNetwork
string logger= string.Empty;
ISet set = new Set();
bool consistincy;
nWCheck.CheckAndRepairConnectivity(true, logger, out set,out consistincy,repairConnectivityProg);
ZZZ
  • 573
  • 4
  • 18