Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In ArcGIS, I have only a point layer relating to a hydrography network's pour points. Now I want to write code in VBA that selects a point from this layer, then highlight the closest points to this point. One of this points must be downstream of the desired point and another point must be upstream. In this work ,I must measure the distance between two points on the network, not a direct distance between two points.Also both points are related to a layer. Also The program must be able to determine one of points in downstream and another points in uostream. I don't know How do I determine the closest points on the network? please help me again.

share|improve this question
VBA will soon be deprecated. I recommend using .NET instead. – Kirk Kuykendall Aug 31 '10 at 13:25
Thank, makes more sense now. – Mapperz Aug 31 '10 at 15:23
Tanks,But I need to work in VBA,because it is part of my thesis. – Nima Sep 1 '10 at 5:21

Take a look at the VB6 custom Trace Upstream Task and also the TraceDownStream task.

share|improve this answer

Your Answer


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