Disable Referent Fields (Location Referencing Tools)
Summary
Disables referent fields for an existing linear referencing system (LRS) event feature class or feature layer. It does not delete the referent columns; it removes the referent column information from the Lrs_Metadata table.
Usage
The referent fields must be enabled for the event prior to running this tool.
Parameters
Label
Explanation
Data type
LRS Event Feature Class
The input feature class or feature layer for the LRS event.
Feature Layer
Derived output
Label
Explanation
Data type
Updated LRS Event Feature Class
The updated feature layer for the event.
Feature Layer
arcpy.locref.DisableReferentFields(in_feature_class)
Name
Explanation
Data type
in_feature_class
The input feature class or feature layer for the LRS event.
Feature Layer
Derived output
Name
Explanation
Data type
out_feature_class
The updated feature layer for the event.
Feature Layer
Code sample
DisableReferentFields example 1 (Python window)
The following script demonstrates how to use the DisableReferentFields tool in a Python window.
# Name: Disable_Referent_Fields_ex1.py
# Description: Disable referent fields in an existing LRS event feature class.
# Requires: ArcGIS Location Referencing
# Set current workspace
arcpy.env.workspace = r"C:\db_connections\test_connection.sde"
# Local variables
in_feature_class = "Event_Feature_Class"
# Run the tool
arcpy.locref.DisableReferentFields(in_feature_class)
DisableReferentFields example 2 (stand-alone script)
The following script demonstrates how to use the DisableReferentFields tool in a stand-alone Python script.
# Name: Disable_Referent_Fields_ex2.py
# Description: Disables referent fields in an existing LRS event feature class.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Local variables:
in_feature_class = r"C:\db_connections\test_connection.sde\testuser.LRS\testuser.Event_Feature_Class"
# Run the tool
arcpy.locref.DisableReferentFields(in_feature_class)
Environments
This tool does not use any geoprocessing environments.
Licensing information
Basic: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
Standard: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
Advanced: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)