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
CreateTemplateFromNetworkDataset(network_dataset, output_network_dataset_template)
Parameter | Explanation | Data 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: Requires Network Analyst
- Standard: Requires Network Analyst
- Advanced: Requires Network Analyst