@rlheath117 wrote:
....
The only thing this approach is missing is if I snap to a circle center point nentselp doesn't seem to include that in its entity search. I was hoping to be able to somehow tap into the information used by the osnap routine. Clearly it knows there was a circle center there. ....
(nentselp) does require that there be some drawn element at that location, which there isn't at the center of a Circle [well, there might be, but not the Circle itself unless you're Zoomed so far out that it's small enough for its perimeter to pass through the pickbox]. I don't know of a way to retrieve that Circle [or other snapped-to object]. But the question raises other questions. Your original description talked in terms of finding an endpoint of a Line to check whether you want to Join it, but obviously that can't be the issue with a Circle, so other reasons are possible, and obviously other Osnap modes. From that, I assume an INTersection might also sometimes be what you Osnapped to, in which case there's more than one thing to find there [not necessarily always -- a vertex within a single Polyline is an intersection -- but usually]. Would you care which entity name from among several it reports, or is there some criterion for deciding which to report, or would you want both?
Kent Cooper, AIA