An existing event feature class or feature layer that is registered to an LRS.
Feature Layer
Derived output
Name
Explanation
Data type
out_feature_class
The updated feature layer for the event.
Feature Layer
Code sample
DisableDerivedMeasureFields example 1 (Python window)
The following Python window script demonstrates how to use the DisableDerivedMeasureFields tool in immediate mode.
# Name: DisableDerivedMeasureFields_ex1.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Tool variables
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Set current workspace
arcpy.env.workspace = r"C:\DisableDerivedMeasureFields\Py\APR.gdb"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
DisableDerivedMeasureFields example 2 (stand-alone script)
The following script demonstrates how to use the DisableDerivedMeasureFields tool in a stand-alone Python script.
# Name: DisableDerivedMeasureFields_ex2.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Local variables:
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(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)