Export any network analysis class to a text file


PurposeThis sample exports the field names and data for a network analysis class to a text file. This sample shows how to open a cursor on the active network analysis class, and iterate through its fields and data.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio to build the project. If running on non-XP Windows, be sure to start Visual Studio "As Administrator."
  2. Start ArcMap.
  3. Right-click a class in the NAWindow.
  4. Click Export To Textfile.
  5. Name and save the text export.

NAClassToTextfileCmd.cs Class that contains the command.
NAClassToTextfileCmd.bmp Image file for the command.
Download the C# files
NAClassToTextfileCmd.vb Class that contains the command.
ExportNAClass.bmp Image file for the command.
Download the VB.NET files

Download the files for all languages

See Also:

Programming with ArcGIS Network Analyst extension
What is ArcGIS Network Analyst extension?
About the ArcGIS Network Analyst extension tutorial
NetworkAnalyst
ArcGIS Network Analyst extension Object Model Diagram
An overview of the network analyst toolbox




Development licensing Deployment licensing
ArcGIS for Desktop Advanced: Network Analyst ArcGIS for Desktop Advanced: Network Analyst
ArcGIS for Desktop Standard: Network Analyst ArcGIS for Desktop Standard: Network Analyst
ArcGIS for Desktop Basic: Network Analyst ArcGIS for Desktop Basic: Network Analyst