[GIS] Selecting features with attachments using ArcMap

arcgis-desktoparcmapattachments

I have an attachment enabled feature class that has photos attached to points. However while any feature in the layer might have a photo, only 10-15% actually do.

How can I narrow in on just those?

The only methods I've discovered rely on one by one interrogation (identify popup windows or attribute table while editing), which is not at all interesting to me in this context.

Best Answer

On the Enabling Attachments help page it says:

When you enable attachments, ArcGIS creates a new table to contain the attachment files and a new relationship class to relate the features to the attached files.

Consequently, you are able to use that relationship class to determine which features are present, and they will be only those with attachments.

To select your features with attachments use the instructions on the Exploring the related objects of an object in a table help page. My instructions here are paraphrased from those.

  1. Right-click on the feature class and use Joins & Relates | Relate to relate using the OBJECTID to the *_ATTACH table's ATTACHMENTID
  2. Use the List By Source view of the Table of Contents to open the *_ATTACH table that represents the attachments.
  3. Select All the rows (attachments).
  4. Click Options > Related Tables, then click the path label for the relationship. A new table dialog box opens for the attribute table of the feature class with attachments enabled, and all features with an attachment should be found selected there.

I just tested this at ArcGIS 10.2 for Desktop and it worked! I used a Standard license but you are not trying to modify a relationship class, just view using one, so a Basic license should be fine to use.