Краткая информация
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.
Использование
Input the event whose features need to be regenerated based on the route and measure of the event.
Синтаксис
GenerateEvents(in_event_layer)
Параметр | Объяснение | Тип данных |
in_event_layer | The event for which shapes will be regenerated. | Feature Layer |
Производные выходные данные
Name | Объяснение | Тип данных |
out_event_layers |
Пример кода
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.GenerateEvents_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
# 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)
Параметры среды
Информация о лицензиях
- ArcGIS Desktop Basic: Требует Roads and Highways
- ArcGIS Desktop Standard: Требует Roads and Highways
- ArcGIS Desktop Advanced: Требует Roads and Highways