Resumen
Re-creates shapes for event features registered with an LRS Network.
Uso
An LRS dataset is required to run this tool.
Input the event whose features need to be regenerated based on the route and measure of the event.
When conflict prevention is enabled for the tool, any events being generated by the tool will be locked.
- While working in the default version, the locks acquired are released automatically when the tool completes.
- While working in a child version, the locks acquired will remain in On Post status when the tool completes. The lock owner must post or delete the version to release the locks.
- While working in a child version, if the execution of the tool is canceled by interruption, the locks are acquired and will remain in releasable status when the tool completes.
Sintaxis
arcpy.locref.GenerateEvents(in_event_layer)
Parámetro | Explicación | Tipo de datos |
in_event_layer | The event for which shapes will be regenerated. | Feature Layer |
Salida derivada
Nombre | Explicación | Tipo de datos |
out_event_layers | Updated events feature layer. | Feature Layer |
Muestra de código
GenerateEvents example 1 (Python window)
The following Python window script demonstrates how to use the GenerateEvents function in the Python window.
# tool variables
in_event_layer = "Event"
# set current workspace
arcpy.env.workspace = "C:/data/Outputs.gdb"
# execute the tool
arcpy.GenerateEvents_locref(in_event_layer)
GenerateEvents example 2 (stand-alone script)
The following Python script demonstrates how to use the GenerateEvents function in a stand-alone Python script.
# Name: GenerateEvents_standalone_ex.py
# Description: Re-creates shapes for event features registered with a LRS Network
# 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)
Entornos
Información sobre licencias
- Basic: Requiere Roads and Highways
- Standard: Requiere Roads and Highways
- Advanced: Requiere Roads and Highways