# Name: Disable_Referent_Fields_ex1.py
# Description: Disable referent fields in an existing LRS event feature class.
# Requires: ArcGIS Location Referencing
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
# Set current workspace
arcpy.env.workspace = r"C:\db_connections\test_connection.sde"
# Local variables
in_feature_class = r"test_gdb.user.LRS.Event_FeatureClass"
# Execute the tool
arcpy.DisableReferentFields_locref(in_feature_class)
# Check in license
arcpy.CheckInExtension('LocationReferencing')