I am trying to use this tool which can be found in the ArcToolBox under data managment, geometric network
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);