Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Can anyone let me know the Python script for "Identify" tool in arcmap10. I need to create a customized script tool for that and add in a toolbar.. Pls help...

share|improve this question
2  
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. –  PolyGeo Apr 22 '13 at 10:24
1  
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. –  Aishwarya R Apr 22 '13 at 10:35
4  
This definitely sounds like a requirement that a Python Add-in could meet. 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 SearchCursor and populate a MessageBox with the results. –  PolyGeo Apr 22 '13 at 10:56
add comment

1 Answer

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.

share|improve this answer
1  
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). –  nmpeterson Apr 22 '13 at 14:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.