Join all selected lines to a single polyline