Purpose
The line direction of all selected lines and polylines will be reversed; this corresponds to choosing Spatial > Edit > Modify > Create Parallel. This function requires the MapCAD Tool and can be executed via the Exec() command. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
Exec ("MapCAD.mbx","ReverseLineDirection")Return Value
Integer.
Description
Use the ReverseLineDirection function to reverse the line direction of the line and polyline objects. All objects of the current selection will be changed. Objects that do not have a suitable object type will be ignored. The return value of the function is the number of changed objects.
The MapCAD tool must be loaded. This function requires an active map window to determine the projection and units.Examples
'Reverse line direction of all selected lines or polylines.
Dim i as integer
i = Exec("MapCAD.mbx","ReverseLineDirection")
note "Objects changed: " + i