The first way you suggested will just find a near entity within the scanning cone. I've already done that. The problem is that my scanning distance is much more than 100 quants and i rly need to find the NEAREST one. The second way you mentioned is exactly what I need, but unfortunately I don't know how to make it.
Some help will be appreciated. laugh