Hello everyone,
Now I am trying to verify and repair connectivity in geometric network. I use interface IGeometricNetworkConnectivity2 with method RebuildConnectivity and CheckAndRepairConnectivity2 to determine inconsistancies connectivity. But, I don't know how to code to constrain the connectivity veryfication to current display extent. By side that, I use interface IGeometricNetworkErrorDetection with method DetectNetworkErrors to determine inconsistances connectivity, too. It is right, isn't it ? And what is difference between them ?
Interesting, the thread is marked as presumed answered, but no answer is provided. Are you sure it is answered?
No, I am not, Xander Bakker. But, I don't know how to move that mark.
Timothy Hales, is it possible to switch off the "Assumed Answered" option on this thread?
Just updated it. Not sure how the assumed answered gets marked for these questions as only a moderator or original poster can mark it as such. Although I have suspicion that they system does it automatically. The way to remove as a moderator is to mark a reply as correct and then un-mark the correct answer. This will clear the assumed answer. I have already done this for this question.
Thank you, Timothy Hales.
Hi, to best of my knowledge, I don't think we can partially verify connectivity of geometric network, because once created, geometric network automatically maintains connectivity as a whole. It continuously updates its network connectivity during edits based on the connectivity rules set (ArcObjects Help for .NET developers ).
"For a geometric network in a Personal or File Geodatabase, CheckandRepairConnectivity will work against the entire geometric network" (ArcObjects Help for .NET developers )
As to the difference with IGeometricNetworkErrorDetection.DefectNetworkErrors, according to the documentation, "While the DetectNetworkErrors method will discover network features with inconsistent connectivity, it does not perform an exhaustive verification. The IGeometricNetworkConnectivity2::CheckandRepairConnectivity method performs a more exhaustive check for network inconsistencies." (ArcObjects Help for .NET developers )
Thank you, Yuan Liu.
I have read that help in ArcObjects Help for .NET developer. But I don't know how to create the function like the Verify Connectivity and Repair Connectivity command in Geometric Network Editing toolbar. If you use that command in ArcMap, you will see it has a option. That option give you choose to run the command against the entire network or the current extent. If you check this option to run, the Repair Network Connectivity or Verify Connectivity command can also be run against the geometric network features within the current extent. It perform more exhaustive checks.
So, I wonder if I can use IGeometricNetworkConnectivity and IGeometricNetworkErrorDetection interface to do the same function or I need another interface ?