Disable Stationing Fields (Linear Referencing Tools)
Summary
Usage
- The stationing fields must be enabled for the event prior to running this tool.
Parameters
|
Label
|
Explanation
|
Data type
|
|
Event Feature Class
|
An existing event feature class or feature layer that is registered to an LRS.
|
Feature Layer
|
Derived output
|
Label
|
Explanation
|
Data type
|
|
Output Event Feature Class
|
The updated feature layer for the event.
|
Feature Layer
|
arcpy.lr.DisableStationingFields(in_feature_class)
|
Name
|
Explanation
|
Data type
|
|
in_feature_class
|
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
DisableStationingFields example 1 (Python window)
The following Python window script demonstrates how to use the DisableStationingFields function in immediate mode.
# Name: DisableStationingFields_Pro_ex1.py
# Description: Disables stationing fields for the registered LRS event.
# Requires: ArcGIS Linear Referencing
# Tool variables
in_feature_class = "c:\\LocationReferencing.sde\\LRS\\LineEventFeatureClass"
# Run the tool
arcpy.lr.DisableStationingFields(in_feature_class)
DisableStationingFields example 2 (stand-alone script)
The following script demonstrates how to use the DisableStationingFields function in a stand-alone Python script.
# Name: DisableStationingFields_Pro_ex2.py
# Description: Disables stationing fields for the registered LRS event.
# Requires: ArcGIS Linear Referencing
# Import arcpy module
import arcpy
# Tool variables
in_feature_class = "c:\\APR.gdb\\LRS\\LineEventFeatureClass"
# Run the tool
arcpy.lr.DisableStationingFields(in_feature_class)
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Requires ArcGIS Linear Referencing
- Standard: Requires ArcGIS Linear Referencing
- Advanced: Requires ArcGIS Linear Referencing