Provides access to the network analysis window. Note: the IEngineNAWindow interface has been superseded byIEngineNAWindow2. Please consider using the more recent version.
Product Availability
Available with ArcGIS Engine.
Description
The IEngineNAWindow interface is the main interface on the IEngineNetworkAnalystEnvironment::NAWindow. It provides methods to access the NALayer and to edit INAContext::NAClasses within the context of an undo/redo operation.
Members
| Description | ||
|---|---|---|
![]() |
AbortOperation | Cancels the operation in progress. |
![]() |
ActiveAnalysis | The current analysis shown in the window. |
![]() |
ActiveCategory | The current category shown in the window. |
![]() |
CategoryByNAClassName | The network analysis window by category. |
![]() |
DelayEvents | Indicates if events should be delayed for a category. |
![]() |
DelayWindowUpdates | Indicates if window updates should be delayed. |
![]() |
hWnd | The handle to the analysis window. |
![]() |
ItemSelectionColor | The color used for selected items. |
![]() |
Message | Displays a message at the bottom of the window. |
![]() |
Selection | The current selection in the window. |
![]() |
StartOperation | Starts an analysis window operation. |
![]() |
StopOperation | Stops an analysis window operation. |
![]() |
UpdateContent | Refresh the window contents. |
[C#]
private voidCopyBarriersFromFirstToSecondNALayer() {//Get the mapIMap map = axMapControl1.Map;//Get the engine network analyst environmentIEngineNetworkAnalystEnvironment engineNAEnvironment =newEngineNetworkAnalystEnvironmentClass();//Get the engine NA windowIEngineNAWindow naWindow = engineNAEnvironment.NAWindow;//Copy the barriers from the first layernaWindow.ActiveAnalysis = (INALayer) map.get_Layer(0); naWindow.ActiveCategory = naWindow.get_CategoryByNAClassName("Barriers"); naWindow.Selection.Copy();//Paste the barriers in the second layernaWindow.ActiveAnalysis = (INALayer) map.get_Layer(1); naWindow.ActiveCategory = naWindow.get_CategoryByNAClassName("Barriers"); naWindow.Selection.Paste(); }
[Visual Basic .NET]
Public SubCopyBarriersFromFirstToSecondNALayer()'Get the mapDimmapAsIMap = AxMapControl1.Map'Get the engine network analyst environmentDimengineNAEnvironmentAsIEngineNetworkAnalystEnvironment =NewEngineNetworkAnalystEnvironmentClass'Get the engine NA windowDimnaWindowAsIEngineNAWindow = engineNAEnvironment.NAWindow'Copy the barriers from the first layernaWindow.ActiveAnalysis = map.Layer(0) naWindow.ActiveCategory = naWindow.CategoryByNAClassName("Barriers") naWindow.Selection.Copy()'Paste the barriers in the second layernaWindow.ActiveAnalysis = map.Layer(1) naWindow.ActiveCategory = naWindow.CategoryByNAClassName("Barriers") naWindow.Selection.Paste()End Sub



