ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Flip Line

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Reverses the from-to direction of line features.

You can view the orientation of line features by symbolizing line features with arrowheads.

Usage

    Caution:

    This tool modifies the input data. See Tools with no outputs for more information and strategies to avoid undesired data changes.

  • 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.

  • When input is a feature layer with a selection, only selected features will be modified.

Syntax

FlipLine_edit (in_features)
ParameterExplanationData Type
in_features

The input line feature class or layer.

Feature Layer

Code Sample

FlipLine Example(stand-alone script)

This example shows how to use Python stand-alone script to do in-place editing.

# Name: Flipline_Example.py
# Description: Flip line features

import arcpy
from arcpy import env
env.workspace="C:/data/project.gdb"
inFeatures="streams"

arcpy.FlipLine_edit(inFeatures)
FlipLine Example (Python interactive window)

Shows, within a Python interactive window, how to use Python command to flip line.

arcpy.FlipLine_edit("C:/data/project.gdb/streams")

Environments

  • Current Workspace

Licensing Information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related Topics

  • An overview of the Editing toolbox
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal