ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please
alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.

Summary

This tool finds the adjacent lines and polygons within a layer. The user can select the attribute fields from the layer to list adjacent features that have the same attributes. A dialog box is displayed showing a list of the features that are adjacent to other features. Each row in the list contains the feature (by OID or another unique attribute) and a list of the features that are adjacent to that feature. By default, this is a non-repeating list. For example, if polygons 1 is adjacent to polygon 2 and polygon 2 is also adjacent to polygon 3, the list will look like

Feature | Adjacent Features
1 | 2
2 | 3

However, a repeating list can be generated by selecting the "Show all features" checkbox.

Feature | Adjacent Features
1 | 2
2 | 1, 3
3 | 2

Each feature can be selected from the list, zooming the display to the extent of that feature. This list of adjacent features can be exported as a text file.

This tool was developed for ArcGIS 9.2 with Service Pack 5 or higher and requires the ArcGIS .NET Assemblies. After running the installer program, the tool will be found in the Customize dialog in the Biogeography Tools category as "Find Adjacent Features".

To install this tool in Vista, open a command line prompt as an administrator and use the command

msiexec /i "path-to-package.msi"

If there are no spaces in the path name, the quotes aren't necessary.

Version History:
23 June 2008
� Bug Fix: Doesn't work correctly with text fields that contain strings with only numbers