Flip Polylines

Running programmatically

Changes the direction of the polylines from a polyline layer based on user defined start point.



Notes :


Running Programmatically

(Go to TOP)


Expression Explanation
Function Name FlipPolylinesBasedOnPoint
<input dataset> A String representing the input layer. Must be of Polyline type.
<output dataset> A String - the full name of the output layer.
>Flip Point Location> A String indicating the location of the flip point. See illustration above. Valid values:
  • "ll", "lowerleft", "sw", "south-west"
  • "lr", "lowerright", "se", "south-east"
  • "ul", "upperleft", "nw", "north-west"
  • "ur", "upperright", "ne", "north-east"
  • "b", "bottom", "s", "south"
  • "t", "top", "n", "north"
  • "l", "left", "w", "west"
  • "r", "right", "e", "east"

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "FlipPolylinesBasedOnPoint", "input dataset", "output dataset", "Flip Point Location"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "FlipPolylinesBasedOnPoint" "input dataset" "output dataset" "Flip Point Location"
.NET using ETGWOutX.dll FlipPolylinesBasedOnPoint(input dataset, output dataset,Flip Point Location)
ArcPy arcpy.FlipPolylinesBasedOnPoint(input dataset, output dataset,Flip Point Location)


(Go to TOP)