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

ArcMap

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

Generate Routes

Available with Location Referencing license.

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

Summary

Re-creates shapes and applies calibration changes for route features in an LRS Network.

Legacy:

This tool has been replaced by the ArcGIS Pro Generate Routes tool and will be deprecated in the next release.

Usage

  • Input the LRS Network whose features need to be regenerated or need calibration changes applied based on the route shape from the centerline feature class, and measure values from the calibration point feature class.

Syntax

GenerateRoutes_locref (in_route_features, {record_calibration_changes})
ParameterExplanationData Type
in_route_features

The LRS Network for which route shapes will be regenerated and calibration changes will be applied.

Feature Layer
record_calibration_changes
(Optional)
  • RECORD_CALIBRATION_CHANGES —Any calibration points created, modified, or deleted outside the ArcGIS Pipeline Referencing tools will be applied to the routes in the network and event behaviors will be applied the next time Apply Event Behaviors is run.
  • NO_RECORD_CALIBRATION_CHANGES —Calibration changes will be applied to the routes in the LRS Network, but no event behaviors will be applied. This is the default.
Boolean

Derived Output

NameExplanationData Type
out_route_features

Updated route feature layer.

Feature Layer
out_derived_route_features

The updated LRS Network to which route shapes have been generated and calibration changes have been applied.

Feature Layer
out_details_file

A text file that details the routes that were updated in the LRS Network feature class.

Text File

Code sample

GenerateRoutes example 1 (Python window)

Demonstrates how to use GenerateRoutes in immediate mode.

# Import arcpy module
import arcpy

# Local variables
in_route_features = r'C:\Data\PipelineReferencing.gdb\LineNetwork'
record_calibration_changes = "NO_RECORD_CALIBRATION_CHANGES"

# Set current workspace
arcpy.env.workspace = "C:/Data/PipelineReferencing.gdb"

# Execute the tool
arcpy.GenerateRoutes_locref(in_route_features, record_calibration_changes)
GenerateRoutes example 2 (stand-alone script)

Demonstrates how to use GenerateRoutes in a stand-alone Python script.

# Name: GenerateRoutes_ex2.py
# Description: Recreates shapes and applies calibration changes for route features in a LRS Network.
# Requirements: ArcGIS Pipeline Referencing

# Import arcpy module
import arcpy

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

# Local variables
in_route_features = r'C:\Data\PipelineReferencing.gdb\LineNetwork'
record_calibration_changes = "RECORD_CALIBRATION_CHANGES"

# Execute the tool
arcpy.GenerateRoutes_locref(in_route_features, record_calibration_changes)

Environments

  • Current Workspace

Licensing information

  • ArcGIS Desktop Basic: Requires ArcGIS Pipeline Referencing
  • ArcGIS Desktop Standard: Requires ArcGIS Pipeline Referencing
  • ArcGIS Desktop Advanced: Requires ArcGIS Pipeline Referencing

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
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal