Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Select and copy features using add-in tool.

$
0
0
Hi,

I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. Add-in tools only handle rectangles, so I'm trying to generate the point coordinate off the onMouseDown event and simply use the X and Y feedback I get. The problem is that I can't seem to pass these coordinates to anything usefull to extract the features. I've tried using Environment extents and then doing a simple CopyFeatures, but that's not working as it copies the entire fc and doesn't seem to honour the environment settings I set.

My question is:
Can I pass coordinates to the Select by Location tool somehow or is there another way of passing coordinates to something to extract by that extent?

Viewing all articles
Browse latest Browse all 2485

Trending Articles