@jtm2020hyo wrote:
I need a Lisp that can draw polylines or lines to one picked point ... since selected-blocks-base-points. ….
It sounds like you want to draw them from multiple Blocks. Does this do what you want?
(defun C:LBP (/ ss pt n); = Line(s) from Block(s) to Point
(prompt "\nTo draw Line(s) from Block insertion(s) to a point,")
(setq
ss (ssget '((0 . "INSERT")))
pt (getpoint "\nPoint to draw Line(s) to: ")
); setq
(if ss
(repeat (setq n (sslength ss)); then
(command "_.line"
"_none" (cdr (assoc 10 (entget (ssname ss (setq n (1- n))))))
"_none" pt ""
); command
); repeat
); if
(princ)
); defun
[Untested.] Change "_.line" to "_.pline" if you want Polylines instead, but unless they are to have width, I don't see any point in using them.
[In some contexts, "from" and "since" are related in meaning, but "from" is the word you want here -- "since" means more like "from in relation to time " rather than in relation to location.]
Kent Cooper, AIA