Does anyone know what ArcObjects interface and method the Trace Downstream trace task on Arcmap's Utility Network Analyst toolbar calls?
2 Answers
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
Take a look at ESRI.ArcGIS.Geodatabase.IUtilityNetwork (or IUtilityNetworkGEN as appropriate).