Network Explorer

Created:August/23/2000
Last Modified:4/1/2002
Description:

This stand alone application shows you how to work with the geometric network and logical network objects in ArcGIS.

The code in this application shows you how to:

  1. Write a custom application outside of ArcMap and ArcCatalog.
  2. Use a forward star to find adjacent elements in a network.
  3. Identify a network element by its Element ID or its Object ID.
  4. Get a description of the network.
  5. Get a description of the weights and weight associations on the network.
  6. Query the network for attributes of network elements.


How to use:
  1. Run the executable.
  2. Load a network by selecting the Load Geometric Network option under the Network pulldown menu.
  3. Identify a network element.
  4. Explore properties of the current network element.

Application:
Standalone application

Requires: A geometric network

Minimum ArcGIS Version Required: 8.2

Difficulty: Intermediate


Visual Basic
File Description
NetworkExplorer.vbp The project file for the network explorer application.
NetworkExplorer.exe The compiled executable.
clsNetworkInfo.cls Class file demonstrating how to explore the connectivity, weights, and metadata of a network.
GNObjectFilter.cls Class file demonstrating how to make a filter for choosing geometric networks.
modMain.bas This module holds a reference to the NetInfo object used by the interface and launches the main form.
frmNetworkExplorer.frm This is the main form of the application. The identify pane shows information about the current network element. The map highlights the current network element in cyan and its adjacent elements in blue.
frmWeights.frm Use this form to explore the weights and weight associations in the loaded network. Launch the form from the Network menu.
frmNetworkInfo.frm Use this form to view metadata about the loaded geometric network. Launch the form from the Network menu.
frmQueryEID.frm Use this form to identify a network element based on its EID and element type. Launch the form from the Identify menu.
frmQueryOID.frm Use this form to identify a network element based on the Object ID of its corresponding feature. Complex edge features will identify the first corresponding network element. Launch the form from the Identify menu.


Key CoClasses: Network, ForwardStar
Key Interfaces: INetwork, IForwardStar, INetElements, INetSchema
Key Members: INetwork::CreateForwardStar, IForwardStar::FindAdjacent, INetElements::QueryIDs, INetSchema::Weight