Select to view content in your preferred language

ArcMap Addin to identify point and read custom attribute from XY Data

762
4
03-28-2011 05:30 AM
FossiG_
Deactivated User
Hi,

using ArcMap I'am displaying points out of a database-table using a "Database Connection" and "Display XY Data...".

Besides the coordinates and other attributes the database table contains an id which I would like to pass to an application when the user clicks on a the corresponding point in the map.

The identify dialog lists this id in the field&value section. Is it possible to extend the identify dialog? I.e. can I place a custom button in this dialog to call a custom app passing a value from a specific field?

As an alternative would it be possible to create an tool-addin, which can read the id-field as soon the user clicks a point in the layer derived from the database connection?


I did the ArcObjects 10 Walkthrough "Building custom UI elements using add-ins" which went very smooth so far. But I'm stuck finding where to start about this. The SDK is just gigantic and a little confusing to newbies making the first steps. 😉

Perhaps I am just missing the right keyword or there is a snippet I overlooked. So any hint would be appreciated.

Thanks in advance,
Fossi
0 Kudos
4 Replies
JohnHauck
Frequent Contributor
Please take a look at the following document as this goes into some detail on spatial queries:

Executing spatial queries
0 Kudos
FossiG_
Deactivated User
Hi,

thanks a lot. With the right keywords it goes a lot easier.:D

Due to your article I came across the snippet "Get First Feature from Point Search in GeoFeatureLayer"
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004900000046000000

This gives a great start and half the battle is won. Thanks again.

Out of sheer curiosity: Is it possible to extend or customize the identify dialog?

Thanks in advance,
Fossi
0 Kudos
JohnHauck
Frequent Contributor
No, it's not possible to customize the Identify dialog. I'd suggest that you check out the following ArcGIS Idea and add any comments that you may have regarding this.

Customize Identify Window
0 Kudos
FossiG_
Deactivated User
Did so. Thanks a lot for your support! 🙂
0 Kudos