Create Template From Network Dataset (Network Analyst)

This ArcGIS 2.7 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Summary

Creates a file containing the schema of an existing network dataset. This template file can then be used to create a new network dataset with the same schema.

Usage

  • This tool creates a network template file (.xml) containing the schema of an existing network dataset. Use the Create Network Dataset From Template tool with this schema to make a new network dataset.

Syntax

arcpy.na.CreateTemplateFromNetworkDataset(network_dataset, output_network_dataset_template)
ParameterExplanationData Type
network_dataset

The network dataset whose schema will be written to the output template file.

Network Dataset Layer
output_network_dataset_template

The output file (.xml) that will contain the schema of the input network dataset.

File

Code sample

CreateTemplateFromNetworkDataset example (Python window)

Execute the tool using all parameters.

network = "C:/data/SanDiego.gdb/Transportation/Streets_ND"
output_xml_file = "C:/data/NDTemplate.xml"
arcpy.na.CreateTemplateFromNetworkDataset(network, output_xml_file)

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics