Hi,
I am creating a ArcGIS Desktop Python add-in that has a tool to cut polylines of a layer by drawing lines across, just like the cut polygon tools in editor mode. I am able to cut polylines with my tool and save it but the problem is; I am unable to select properly any polylines of that layer after my cut operation. My add-in code is given below. onLine method of CutTool is called when the mouse button is double-clicked to finish drawing the line on the map.
class CutTool(object):
"""Implementation for PlugIn_addin.tool (Tool)"""
def __init__(self):