Skip to main content
edited body
Source Link
ZZZ
  • 573
  • 4
  • 18

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

I triestried using the IGeoProcessor Interface to run the tool, but I am getting an exception eventhough I am passing correct parameters according to the ArcToolBox Help provided. The exception is raised on Execute.

   try {
            var array = new VarArrayClass();
            var gp = new GeoProcessorClass();
            gp.AddToolbox(@"c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx");
            array.Add("ElectCoilNet");
            array.Add(@"c:\OutLog.txt");
            array.Add("VERIFY_ONLY");

            var result = gp.Execute("VerifyAndRepairGeometricNetworkConnectivity_management", array, null);
            
        } catch (Exception ex) { Logger.LogException(ex);}

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

I tries using the IGeoProcessor Interface to run the tool, but I am getting an exception eventhough I am passing correct parameters according to the ArcToolBox Help provided. The exception is raised on Execute.

   try {
            var array = new VarArrayClass();
            var gp = new GeoProcessorClass();
            gp.AddToolbox(@"c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx");
            array.Add("ElectCoilNet");
            array.Add(@"c:\OutLog.txt");
            array.Add("VERIFY_ONLY");

            var result = gp.Execute("VerifyAndRepairGeometricNetworkConnectivity_management", array, null);
            
        } catch (Exception ex) { Logger.LogException(ex);}

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

I tried using the IGeoProcessor Interface to run the tool, but I am getting an exception eventhough I am passing correct parameters according to the ArcToolBox Help provided. The exception is raised on Execute.

   try {
            var array = new VarArrayClass();
            var gp = new GeoProcessorClass();
            gp.AddToolbox(@"c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx");
            array.Add("ElectCoilNet");
            array.Add(@"c:\OutLog.txt");
            array.Add("VERIFY_ONLY");

            var result = gp.Execute("VerifyAndRepairGeometricNetworkConnectivity_management", array, null);
            
        } catch (Exception ex) { Logger.LogException(ex);}
Tried to follow the answer provided, but exception was raised. Tool is available on version 10 and up
Source Link
ZZZ
  • 573
  • 4
  • 18

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

I tries using the IGeoProcessor Interface to run the tool, but I am getting an exception eventhough I am passing correct parameters according to the ArcToolBox Help provided. The exception is raised on Execute.

   try {
            var array = new VarArrayClass();
            var gp = new GeoProcessorClass();
            gp.AddToolbox(@"c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx");
            array.Add("ElectCoilNet");
            array.Add(@"c:\OutLog.txt");
            array.Add("VERIFY_ONLY");

            var result = gp.Execute("VerifyAndRepairGeometricNetworkConnectivity_management", array, null);
            
        } catch (Exception ex) { Logger.LogException(ex);}

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);

I tries using the IGeoProcessor Interface to run the tool, but I am getting an exception eventhough I am passing correct parameters according to the ArcToolBox Help provided. The exception is raised on Execute.

   try {
            var array = new VarArrayClass();
            var gp = new GeoProcessorClass();
            gp.AddToolbox(@"c:\program files (x86)\arcgis\desktop10.2\ArcToolbox\Toolboxes\Data Management Tools.tbx");
            array.Add("ElectCoilNet");
            array.Add(@"c:\OutLog.txt");
            array.Add("VERIFY_ONLY");

            var result = gp.Execute("VerifyAndRepairGeometricNetworkConnectivity_management", array, null);
            
        } catch (Exception ex) { Logger.LogException(ex);}
Added language tag, improved English.
Source Link
Hornbydd
  • 44.6k
  • 5
  • 42
  • 84

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

enter image description hereTool

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 IGeometricNetworkConnectivity2IGeometricNetworkConnectivity2, and I can use it on each feature class seperatlyseparately, but it does not allow me to do an exaustiveexhaustive 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);
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);

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);

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

Tool

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 separately, but it does not allow me to do an exhaustive 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);
naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65
Loading
Source Link
ZZZ
  • 573
  • 4
  • 18
Loading