Purpose
Split all selected polyline and region objects into individual lines; corresponds to choosing Spatial > Edit > Disaggregate > Disaggregate To Lines. 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","SplitToLines")Return Value
Integer.
Description
Use the SplitToLines function to split all selected polyline and region objects into individual lines. 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 actually changed source objects.
The MapCAD tool must be loaded. This function requires no active map window.
Examples
'Split all selected polyline and region objects into individual lines.
Dim i as integer
i = Exec("MapCAD.mbx","SplitToLines")
note "Objects changed: " + i