MikeEber

Writing an ArcMap Add-in, how do I get a Point feature from the map?

Discussion created by MikeEber on Mar 14, 2014
Latest reply on Mar 17, 2014 by Hornbydd
I have to write "simple" code for ESRI support.  I'm writing my bug recreation as an Add-in as they suggested.
I have my hydrography raster and a point inside the hydrography added to the layer in the map.

When I look through the Map, Layer, and View layers I cannot find out how I can access the Point feature so that I can use it in my code.

So --- How do I do that?  I imagine I have to cast one of these to some other god-forsaken interface to do this but don't know which one and I need to get this code working as quickly as possible.

Any suggestions or code snippets for doing this???  I'm using .NET C# 4.0 with ArcObjects 10.1.1 and ArcMap 10.1.

Thanks much

Outcomes