Flip Line (Editing)
Summary
Reverses the from-to direction of line features.
You can view the orientation of line features by symbolizing line features with arrowheads.
Usage
-
Direction-dependent attributes, such as address ranges, are not flipped----only the geometry is flipped. For example, suppose a line feature has an LF-ADD attribute ('left from address') of 100 and an LT-ADD ('left-to address') of 198. These values will not change if the line is flipped.
![Caution Caution](rsrc/caution.png)
This tool modifies the input data. See Tools with no outputs for more information and strategies to avoid undesired data changes.
Syntax
Parameter | Explanation | Data Type |
in_features |
The input feature class or layer. This must be Polyline. | Feature Layer |
Code Sample
This example shows how to use Python stand-alone script to do in-place editing.
# Name: Flipline_Example.py
# Description: Flip line features
# Requirements:
# Author: ESRI
import arcpy
from arcpy import env
env.workspace="C:/data"
inFeatures="harvestable.shp"
try:
arcpy.FlipLine_edit(inFeatures)
except Exception, e:
# If an error occurred, print line number and error message
import traceback, sys
tb = sys.exc_info()[2]
print "Line %i" % tb.tb_lineno
print e.message
Shows, within a Python interactive window, how to use Python command to flip line.
import arcpy
from arcpy import env
env.workspace="C:/data"
arcpy.FlipLine_edit("harvestable.shp")