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 Events

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

Summary

Re-creates shapes for event features registered with an LRS Network. If the event has derived network route and measure fields configured, the tool will update those fields when executed.

Usage

  • Input the event whose features need to be regenerated based on the route and measure of the event.

Syntax

GenerateEvents_locref (in_event_layer)
ParameterExplanationData Type
in_event_layer

The event for which shapes will be regenerated.

Feature Layer

Code sample

GenerateEvents example 1 (Python window)

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

# tool variables 
in_event_layer = "Event"

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

# execute the tool 
arcpy.UpdateEventShapes_locref(in_event_layer)
GenerateEvents example 2 (stand-alone script)

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

# Name: GenerateEvents_standalone_ex.py 
# Description: Re-creates shapes for event features registered with a LRS Network 
# Requirements: Esri Roads and Highways
# Import arcpy module 
import arcpy 
# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")
# Local variables 
# input Network layer 
in_event_layer = "C:\\RoadsAndHighways\Data\RH_DOT.gdb\SpeedLimit" 
# Process: Generate Events
arcpy.GenerateEvents_locref(in_event_layer)

Environments

  • Current Workspace

Licensing information

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

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