[Visual Basic 6.0]This example demonstrates how to use the properties and methods on the IUtilityNetworkAnalysis interface g_pApplication is a variable of type IApplication holding a valid reference to the ArcMap application
Dim pUtilityNetworkAnalysisExt As esriEditorExt.IUtilityNetworkAnalysisExt Dim pUID As New esriSystem.UID Dim blnEnableSetFlowDirection As Boolean 'set the UID for the extension pUID = "esriEditorExt.UtilityNetworkAnalysisExt" 'obtain a reference to the extension by querying the application Set pUtilityNetworkAnalysisExt = g_pApplication.FindExtensionByCLSID(pUID) With pUtilityNetworkAnalysisExt 'determine if the flow direction can be set for the current network blnEnableSetFlowDirection = .EnableSetFlowDirection End With
[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button
in the upper-left corner of the page.