I need to use Lisp to select an entity (arc, line, leader, lwpolyline or spline) and then select the endpoint of that entity near the selection point. I've use ENTSEL to get the entity information and the click point, but I can't figure out a way to get the enpoint nearest to that click to insert a donut entity, which obtains the layer properties of the selected entity.
What pointers do you guys have?
Sincerely,
Rabbit