Skip To Content

Disable Referent Fields

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.

Syntax

DisableReferentFields_locref (in_feature_class)
ParameterExplanationData Type
in_feature_class

The input feature class or feature layer for the LRS event.

Feature Layer

Code sample

DisableReferentFields example 1 (Python window)

The following script demonstrates how to use the DisableReferentFields tool in a Python window.

# set current workspace
arcpy.env.workspace = r"C:\db_connections\test_connection.sde"

# local variables
in_feature_class = r"test_gdb.user.Event_FeatureClass"

# execute the tool
arcpy.DisableReferentFields_locref(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 Pipeline Referencing

# import arcpy module
import arcpy
 
# check out any necessary licenses
arcpy.CheckOutExtension("LocationReferencing")

# local variables:
in_feature_class = r"C:\db_connections\test_connection.sde\test_gdb.user.Event_FeatureClass"

# execute the tool
arcpy.DisableReferentFields_locref(in_feature_class)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • ArcGIS Desktop Basic: Requires ArcGIS Pipeline Referencing
  • ArcGIS Desktop Standard: Requires ArcGIS Pipeline Referencing
  • ArcGIS Desktop Advanced: Requires ArcGIS Pipeline Referencing

Related topics