# Name: ConfigureAddressFeatureClasses_ex1.py
# Description: Configure address feature classes for use with a linear referencing system (LRS) in the Python window.
# Requires: ArcGIS Location Referencing
# Set current workspace
arcpy.env.workspace= r"C:\Data\AM_LR.gdb"
# Set tool variables
in_address_range_features = r"C:\Data\AM_LR.gdb\LRS\AddressRange"
left_from_address_field = "fromleft"
left_to_address_field = "toleft"
right_from_address_field = "fromright"
right_to_address_field = "toright"
in_site_address_features = r"C:\Data\AM_LR.gdb\LRS\SiteAddress"
address_number_field = "addrnum"
# Execute the tool
arcpy.locref.ConfigureAddressFeatureClasses(in_address_range_features, left_from_address_field, left_to_address_field, right_from_address_field, right_to_address_field, in_site_address_features, address_number_field)