Things like this ... ?
Code:
(defun c:Test (/ i p1 p2 l Blockname mid)
(setq i 1)
(if (setq p1 (getpoint "\n Specify point :"))
(while
(setq p2 (getpoint p1 "\n Next point :"))
(setq l (entmakex (list '(0 . "LINE") (cons 10 p1) (cons 11 p2))))
(while (tblsearch "BLOCK" (setq Blockname (strcat "Line" (itoa i))))
(setq i (1+ i))
)
(command "_.-block" Blockname (setq mid (mapcar (function (lambda (p1 p2) (/ (+ p1 p2) 2.)))
p1
p2
)
)
l
""
)
(command "_.-insert" Blockname mid "" "" "")
(setq p1 p2)
)
(princ)
)
(princ)
)