ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Create Template From Network Dataset

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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

  • Current Workspace

Licensing information

  • Basic: Requires Network Analyst
  • Standard: Requires Network Analyst
  • Advanced: Requires Network Analyst

Related topics

  • An overview of the Network Dataset toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal