Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Does anyone know what ArcObjects interface and method the Trace Downstream trace task on Arcmap's Utility Network Analyst toolbar calls?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

My guess is ITraceFlowSolverGEN and the methods FindFlowElements or FindFlowEndElements, but I only guess that because of the ArcObjectsRoutines code found in the 9.3.1 NetworkTraceTask on the arcscripts site.

Dim pNewTrace As ESRI.ArcGIS.NetworkAnalysis.ITraceFlowSolverGEN
' ... some code, that constructs and sets up the solver '
   Case "TRACE DOWNSTREAM"
      If bTraceEnds Then
        pNewTrace.FindFlowEndElements(ESRI.ArcGIS.NetworkAnalysis.esriFlowMethod.esriFMDownstream, ESRI.ArcGIS.NetworkAnalysis.esriFlowElements.esriFEJunctionsAndEdges, pJuncEIDs, pEdgeEIDs)
      Else
        pNewTrace.FindFlowElements(ESRI.ArcGIS.NetworkAnalysis.esriFlowMethod.esriFMDownstream, ESRI.ArcGIS.NetworkAnalysis.esriFlowElements.esriFEJunctionsAndEdges, pJuncEIDs, pEdgeEIDs)
      End If
share|improve this answer

Take a look at ESRI.ArcGIS.Geodatabase.IUtilityNetwork (or IUtilityNetworkGEN as appropriate).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.