I ran into this problem a while back when I was trying to finish up my master's project. The solution submitted by irfan works fine in most cases, but there are certain situations where this will produce erroneous results. Have a look at the following thread from the old forum archives, where I posted a link to a script that handles this all in one fell swoop: http://forums.esri.com/Thread.asp?c=93&f=1730&t=208677 The link to the script is at the bottom of the thread in the last post, but reading through the entire thread will give you a better idea of the problems a few of us ran into with irfan's solution. If you don't want to bother reading the old thread, the script can be downloaded directly from the following link: http://arcscripts.esri.com/details.asp?dbid=16700 Good luck, ck
... View more