I found an interesting function to use in an add-in called onRectangle. I would like to use this to build a feature set and get values from fields.
Now that I have an extent how do I use it to select a feature or features and then get the values from field1, field2, etc...
Code:
def __init__(self):
self.enabled = True
self.cursor = 3
self.shape = 'Rectangle'
def onRectangle(self, rectangle_geometry):
"""Occurs when the rectangle is drawn and the mouse button is released.
The rectangle is a extent object."""
extent = rectangle_geometry