I'm trying to create a template (.xml) from a network dataset. However apparently the tool is not available but the online ESRI help has code samples. I was wondering if anyone has had the same issue. On a side note all the ArcGIS help is on GIS Pro. Does this mean the tool is only available to GIS pro users? I'm using Arcmap 10.2.
THe code is as below:
import arcpy import os import inspect from arcpy import env arcpy.CheckOutExtension("Network") myPath = r"C:\Users\za\Desktop\TT" env.workspace = myPath + r"\Tt_Home.gdb" inNetwork = r"\NetworkDataset\NetworkDataset_New" output_xml = myPath + "/myTemplate.xml" print output_xml print inNetwork arcpy.na.CreateTemplateFromNetworkDataset(inNetwork, output_xml)
The error I get is as below:
AttributeError: 'module' object has no attribute 'CreateTemplateFromNetworkDataset'