I need to know the end points (p1 and p2) of a line chosen by the user. How can I let them only select a single line? I'm currently using the following:
(if (setq ss (ssget '((0 . "LINE"))))
(setq l1ent (entget (ssname ss 0)))
(setq p1 (cdr (assoc 10 l1ent)))
(setq p2 (cdr (assoc 11 l1ent)))...