I'm trying to programmatically extend hundreds of lines (blue in image) to a single polyline feature (red in image). Sometimes the lines intersect each other, but I'd like the lines to extend, not to other existing lines, but to the polyline feature mentioned before. Even if i select 1 line and the polyline feature, the 1 line is stopped at the other unselected lines. ~ arcpy.ExtendLine_edit(lines, "2000 Meters", "FEATURE")
I can accomplish the process manually in edit mode by selecting the feature, clicking the extend line tool in the advanced editor toolbox, then clicking the line that needs extending. Is there a way to do this part of the selection in python?