This document is archived and information here might be outdated.  Recommended version.


IEngineNetworkAnalystEnvironment Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IEngineNetworkAnalystEnvironment Interface

Provides access to the network analyst extension.

Product Availability

Available with ArcGIS Engine.

Description

The IEngineNetworkAnalystEnvironment interface is the main interface on the EngineNetworkAnalystEnvironment singleton object and used to access the INetworkLayer objects and the NAWindow.

Members

Description
Read/write property CurrentNetworkLayer The current network layer.
Read-only property NAWindow The network analysis window.
Read-only property NetworkLayer The network layer by index.
Read-only property NetworkLayerCount The number of network layers.
Read/write property ShowAnalysisMessagesAfterSolve The types of messages that are displayed after solving.
Read/write property ZoomToResultAfterSolve Indicates if the window should zoom the map to show results after solving.

CoClasses that implement IEngineNetworkAnalystEnvironment

CoClasses and Classes Description
EngineNetworkAnalystEnvironment A singleton object representing Engine Network Analyst environment.
[C#]

System.Type t=System.Type.GetTypeFromProgID("esriControls.EngineNetworkAnalystEnvironment");
var naEnv=System.Activator.CreateInstance(t) as IEngineNetworkAnalystEnvironment;

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: cmdClearAnalysisLayer cmdLoadLocations CommonFunctions frmLoadLocations frmMain frmNAProperties)

.NET Related Topics

How to set up an ArcGIS Network Analyst extension solve to work with the undo/redo stack