3

Is there a way to flip the direction of all selected lines at once?

6

The Editing toolbox in ArcToolbox has a tool called Flip Line, which will reverse the direction of every line (or selected lines if any are selected) in the chosen feature class or layer.

This can be used from the toolbox in ArcMap, or using the syntax outlined in the ArcGIS Help site link above:

Syntax

FlipLine_edit (in_features)

in_features | The input line feature class or layer. | Feature Layer

In arcpy this would look something like this:

arcpy.FlipLine_edit("C:/data/project.gdb/streams")
  • Worked like a charm! Didn't realize the tool it would work on selections or definition queries. Thanks! – Tigerwoulds Feb 10 '17 at 22:46
  • @Tigerwoulds almost every tool runs on selections or definition queries if run on the layer in ArcMap. I would say every tool does, but I'm not 100% sure on that – Midavalo Feb 10 '17 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.