thats interesting, i have to look into that nentselp "" part, I don't know about.
but yeah there is one more object at that point, and that is a closed polyline. I have to check if pt1 is inside the selected closed polyline and if not select another one.
I found a routine that checks if a point is inside a closed polyline but, I'll have to understand how it works
thanks for all the help guys