ArcGIS Desktop

  • Documentation
  • Support

  • 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 for 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

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Generate Routes

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

Summary

Re-creates shapes and calibration for routes features in a LRS Network.

Usage

  • Input the LRS Network whose routes feature needs to be regenerated based on the route shape definition from centerline feature class and the measure values definition from the calibration point feature class.

Syntax

GenerateRoutes_roads (in_network)
ParameterExplanationData Type
in_network

The ALRS Network for which route shapes will be regenerated.

Feature Layer

Code sample

Generate Routes example (Python window)

The following Python window script demonstrates how to use GenerateRoutes function in immediate mode.

# tool variables
in_network="MilePoint"

# set current workspace
arcpy.env.workspace="C:/data/Outputs.gdb"

# execute the tool
GenerateRoutes_roads(in_network)
Generate Routes Example (Stand-alone Python script)

The following Python script demonstrates how to use GenerateRoutes in a stand-alone Python script.

# Name: GenerateRoutes_PyWin.py
# Description: Re-creates shapes and calibration for routes features in a LRS Network
# Requirements: Esri Roads and Highways solution

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")

# Local variables
# input Network layer
in_network = "C:\\RoadsAndHighways\\Data\RH_DOT.gdb\\LRSN_County"

# Process: Generate Routes
arcpy.GenerateRoutes_roads(in_network)

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS Desktop Basic: Requires Roads and Highways
  • ArcGIS Desktop Standard: Requires Roads and Highways
  • ArcGIS Desktop Advanced: Requires Roads and Highways

Related topics

  • An overview of the Roads and Highways toolbox

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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