Thank you very much for your reply. I got a copy of your suggestion to my PC for future uses.Unfortunately I can't use Geoproccesing Tools. I mean, I'm not allowed to. So, I decided to write this on my own.I create a polyline (which is a single line indeed) using FROM and TO points. Then, I get elevation of 100 points between FROM and TO points.It works. But I should replace 100 with significant data.Thank you again for your helpful reply. I appreciate it.Sincerely