# Name: Enable_Referent_Fields_ex1.py
# Description: Enable referent fields for an existing LRS Event that already has referent fields configured.
# Requires: ArcGIS Location Referencing
# Local variables:
inputEventFC = r"C:\EnableReferent\Py\EnableReferent.gdb\LRS\Event_Feature_Class"
fromReferentMethodField = "FromRefMethod"
fromReferentLocationField = "FromRefLocation"
fromReferentOffsetField = "FromRefOffset"
toReferentMethodField = "ToRefMethod"
toReferentLocationField = "ToRefLocation"
toReferentOffsetField = "ToRefOffset"
offsetUnit = "FEET"
# Execute the tool
arcpy.locref.EnableReferentFields(inputEventFC, fromReferentMethodField, fromReferentLocationField,
fromReferentOffsetField, toReferentMethodField, toReferentLocationField,
toReferentOffsetField, offsetUnit)