> Script Details
Draw lines separating polygons with same attributes
report inappropriate content
Feb 24 2005
Status of work
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.
This download includes an .mxd with a button on the topology toolbar that when pushed, does the following:
1) draws polylines that separate two polygons that have matching attributes.
2) updates the "ErrFlag" field on the polygon featureclass with the number of violations (adjacency or overlap) that each polygon feature is involved in. "ErrFlag" is the alias name of the field.
3) draws points (nodes) where two or more polygons come together with matching attributes. For example Four Corners NewMexico would not be a violation when using the "State_Name" attribute.
The tool operates only on the current extent.
Add a polygon layer to the map.
Set the alias name of an integer field to "ErrFlag".
Turn on the topology toolbar.
Rightclick on the layer and choose Properties...
On the Fields tab, turn on visibility for each field that you want to tool to consider when it compares adjacent polygons. The field whose alias is "ErrFlag" will not be used in determining violations, so you may leave it visible, and perhaps set up the rendering based on the ErrFlag field.
Start editing, make a maptopology that has just the polygon layer in it.
Push the smiley face.
VBA source code included.
You may freely modify & re-distribute this so long as you feel really guilty about it.
Requires ArcView 9.0 (at minimum).