Skip To Content

Apply Event Behaviors

Summary

Updates the event locations for all event feature classes registered with the input network based on the route edit performed.

The events get updated as per the event behavior configured. To learn more about event behavior and configuring event behavior, see Event behaviors.

Illustration

Apply Event Behaviors tool illustration
Apply Event Behaviors tool illustration

Usage

  • This tool will process all event behaviors for all event feature classes registered with the input network.

  • This tool will process edits that have not been processed earlier in the working geodatabase version. Once the event behavior for a particular route edit is processed, it is marked as processed. When you post the edits to the parent version, if the event behavior is already processed, they will not get processed again.

    Note:

    Selection or definition queries used to filter the route or event records in the map are ignored to keep events in sync with route edits.

  • Caution:

    This tool modifies the event records in the event feature classes. See Tools with no outputs for more information and strategies to avoid unwanted data changes.

Syntax

ApplyEventBehaviors_locref (in_route_features)
ParameterExplanationData Type
in_route_features

The ALRS Network for which event locations will be updated. This must be a network feature class.

Feature Layer

Code sample

ApplyEventBehaviors example 1 (stand-alone script)

Demonstrates how to use the ApplyEventBehaviors tool as a stand-alone Python script.

# Name: ApplyEventBehaviors.py
# Description: Processes event behaviors for events impacted by edits to the LRS Network.
# Requirements: ArcGIS Pipeline Referencing

# Import arcpy module
import arcpy

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

# Tool variables
network = "C:/Data/UPDM.gdb/P_StationSeriesNetwork"

# Process: Update Event Locations
arcpy.ApplyEventBehaviors_locref(network)
ApplyEventBehaviors example 2 (Python window)

Demonstrates how to use the ApplyEventBehaviors tool in the Python window.

# tool variables
in_route_features = "Station_Series_Network"

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

# execute the tool
arcpy.ApplyEventBehaviors_locref(in_route_features)

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics