ArcObjects Library Reference (NetworkAnalystUI)  

NAWindow Class

The network analysis window.

NAWindow is a non-creatable object. References to non-creatable objects must be obtained through other objects.

Product Availability

Available with ArcGIS Desktop. Requires Network Analyst Extension.

Interfaces

Interfaces Description
IAcceleratorHook (esriFramework) Provides access to a means to decide if a virtual key should act as an accelerator.
IActiveViewEvents (esriCarto) Provides access to events that occur when the state of the active view changes.
IConnectionPointContainer Supports connection points for connectable objects.
IDocumentEvents (esriArcMapUI) Provides access to events that occur in ArcMap.
INAContextEvents (esriNetworkAnalyst) Provides access to events triggered by the network analysis context.
INAContextEvents2 (esriNetworkAnalyst) Provides access to events triggered by the network analysis context.
INALayerEvents (esriNetworkAnalyst) Provides access to events triggered by the network analysis layer.
INAWindow Provides access to the network analysis window.
INAWindow2 Provides access to the network analysis window.
IObjectClassEvents (esriGeoDatabase) Provides access to events that occur with an object class.
ISelectionEvents (esriCarto) Provides access to events that occur when the selection changes.
IWorkspaceEditEvents (esriGeoDatabase) Provides access to events that occur to a workspace in the context of editing it.

Event Interfaces

Interfaces Description
INAWindowEvents (default) Provides access to events triggered by the network analysis window.

Remarks

The NAWindow is a dockable window in ArcMap that helps users manage the NALayers containing the problem definition and NAClasses of NALocationObjects/NALocationFeatures

[C#]

This code shows how to get the NAWindow from the Network Analyst extension.

public INAWindow GetNAWindow(IApplication app)
{
  INetworkAnalystExtension networkAnalystExtension = app.FindExtensionByName("Network Analyst") as INetworkAnalystExtension;
  return networkAnalystExtension.NAWindow;
}
[Visual Basic .NET]

This code shows how to get the NAWindow from the Network Analyst extension.

Public Function GetNAWindow(ByVal app As IApplication) As INAWindow
  Dim networkAnalystExtension As INetworkAnalystExtension = app.FindExtensionByName("Network Analyst")
  Return networkAnalystExtension.NAWindow
End Function

Working with Events

[Visual Basic 6.0]

When working with NAWindow's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pNAWindow as NAWindow