Reverse Line
COMMAND LICENSING AND DEFAULT MENU LOCATIONS
- The Reverse Line command is part of the RPS Data Prep Toolbox.
- The command is located on the Data Prep macros menu ribbon.
- The command is located in the Modify menu group.
COMMAND DESCRIPTION
Reverses the direction of the selected linestrings, CAD lines, or polylines based on different methods. Line drawing direction can be displayed or set by the following methods:
- Default (drawn direction)
- Closed (Clockwise or Anti-clockwise)
- Reference Line (Toward/Away or Forward/Reverse)
- Uphill/Downhill
COMMAND HISTORY
Update: September 1, 2022 - v5.70r06
Corrected a defect reported where some complex closed multi-segment lines were not reporting Clockwise/anti-clockwise correctly.
Last Updated: August 2, 2022 - v5.70r05
Added multiline selection in place of single line selection so that any number of lines can be selected and reviewed and modified based on the new and additional criteria
Added the Closed, Reference Line and Uphill/Downhill methods to control the drawing direction of lines.
Added Command Tips to the dialog for user assistance.
SETUP AND CONFIGURATION
Command Interface Description
The Reverse Line command dialog looks as follows
Select lines:
Select the line or lines that you want to review/modify. The lines will display the direction arrows indicating the current line directions based on the current method selected. Tap the Apply button to reverse the lines and see the results of the changes. The arrows on the selected lines will update to show the updated line direction.
EXECUTE
Select mode:
There are now four modes that you can use to determine the line drawing direction.
Default mode:
In this mode the line direction is the direction in which the line is drawn (start to finish). Select the line(s) and then click Apply to make the change. The selected line(s) simply change their line drawing direction e.g. from Left / Right to Right / Left.
Closed mode:
In this mode, only lines that have the closed status property will be selected. The line direction of a closed line can be clockwise or anticlockwise. Select the mode required and then click Apply to action the change.
Reference line mode:
In this mode the line direction is derived in relation to a selected reference line or alignment. The line direction can be Toward, Away, Parallel, or Antiparallel (forward/reverse direction of the selected reference line) to the reference line. The start and end point of the selected line(s) are used to define how the line relates to the selected line, i.e., for multi-segment lines, the closest end of the selected line to the reference line will determine the Toward / Away direction. Select the reference line, the lines to adjust, and then the mode and click Apply to make the changes.
Uphill / Downhill mode:
In this mode the line direction is derived from the predominant slope of the selected lines. The predominant slope is derived from the start and end points of the selected lines, i.e., if the first point is lower than the last point, the slope is uphill from start to end of line. In the case of multi-segment lines, the same applies, so even if some segments are uphill and some are downhill, the start and end points of the line define the line drawing direction.
Color of lines which will be reversed:
The color shown here is the color defined in RPS Settings - Highlight colors for the Primary Highlight Color. Click the color bar to open the RPS Settings - Highlight Color settings to modify the color if required. This color is used to highlight the lines that will be reversed using the current mode of reversal.
You can also set the highlight lineweight for this color in the RPS Settings dialog.
Color of lines which will be ignored:
The color shown here is the color defined in RPS Settings - Highlight colors for the Secondary Highlight Color. Click the color bar to open the RPS Settings - Highlight Color settings to modify the color if required. This color is used to highlight the lines that will be ignored using the current mode of reversal.
You can also set the highlight lineweight for this color in the RPS Settings dialog.
APPLY BUTTON
When you tap Apply, the selected line(s) will be reversed and the command will prepare itself for another selection set and another process execution. If you do not want to make a second selection and repeat the process, tap Close to finish the process.
CLOSE BUTTON
Closes the command without further execution.
VIDEO DEMONSTRATION
The following video shows how to utilize the Reverse Line command:
USE CASE VIDEOS
The following videos show the use of the Reverse Line command in a workflow context:
FEEDBACK AND ENHANCEMENT REQUESTS
If you would like to provide feedback on the use of the Reverse Line command or to request enhancements or improvements to the command, please click Reply below.

