3

Is there a Python script for "Identify" tool in ArcMap 10?

I need to create a customized script tool for that and add it to a toolbar.

The attribute table of my feature class has many fields. Out of that the custom identify tool should display the values of only two fields. i need to add that as a button in my tool bar.. when the user clicks any feature, the values of the two fields should be displayed.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Apr 22, 2013 at 10:18
0

2 Answers 2

12

If the intent of your application is to provide the user a simplified view when identifying features then I would suggest just turn off all the other fields within the layer properties that you do not want to show. When the user identifies a feature, they will only see info for the two that are turned on. This can be done by:

  1. Right click layer in the ArcMap TOC and select Properties
  2. Select Fields tab
  3. Select Turn All Fields off icon
  4. Then manually turn on the two fields you want to show info for
  5. Now, just save your map document with these preferences, and give it to your user(s).

This should save you time in re-creating this tool.

answered Apr 22, 2013 at 11:34
1
  • 3
    Additionally, within an MXD you can create a custom Display Expression from the Display tab of a layer's Layer Properties window. For example, I use the expression [PROJ_ID] & " : " & [PROJ_YEAR] to display the values of those two attributes, separated by a colon, in the Identity window (rather than just letting ArcMap pick whatever field it somehow judges to be the best). Commented Apr 22, 2013 at 14:18
1

The Identify tool does not have a Python script behind it. If you can provide more details of what you are trying to achieve, and if you are using ArcGIS 10.1, then a Python Add-in may be an option to build a simplified "Identify" tool.

I recommend starting with the online help. It is a Tool that you create, and you will probably ask for user input of a single point, before using that to select feature(s), open a SearchCursor and populate a MessageBox with the results.

answered Nov 11, 2017 at 5:37
1
  • Late to the party here buuuut.. Maybe the OP is obliquely referencing the fact that the Identify Tool returns results from a related table, a thoroughly manual process - one click at a time, and it sure would be handy to be able to script the query as a loop and write the return out to (e.g.) a CSV file. -- People have been asking for some version of that functionality for two decades at least. Obviously ArcGIS can do this thing but how to automate it with a script is a mystery. Commented Sep 8, 2020 at 17:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.