# Name: EnableStationingFields_Pro_ex1.py
# Description: Enables or modifies stationing fields to manage referent
# information for the registered LRS event.
# Requires: ArcGIS Location Referencing
# Tool variables
in_feature_class = "c:\\LocationReferencing.sde\\LRS\LineEventFeatureClass"
station_field = "Ahead Station"
back_station_field = "Back Station"
station_direction_field = "StnDirection"
station_measure_units = "Feet"
decreasing_station_values = "0,-1,-2"
# Execute the tool
arcpy.locref.EnableStationingFields(in_feature_class, station_field,
back_station_field, station_direction_field,
station_measure_units, decreasing_station_values)