Since Lee's Code only has you picking a point its easy enough. Just add a call at the end of APV (line 95) to call itself again. This will force a loop that you have to hit esc to exit.
- Edit
This is a better option. Has undo marks. You could also set your snaps before entering the command if you want to.
;;----------------------------------------------------------------------------;;
;; Add Polyline Vertex loop
;; Dependent AddLWPolylineVertexV1-1.lsp
(defun C:APVL ( / )
(vl-load-com)
(princ "\nStarting Add Polyline Vertex loop. Press ESC to stop.")
(vla-StartUndoMark (setq doc (vla-get-ActiveDocument (vlax-get-Acad-Object))))
;(setvar 'OSMODE 3) ;End and mid point snaps
(while T
(C:APV)
)
(princ "\nAdd Polyline Vertex Loop ended.")
(vla-EndUndoMark doc)
(princ)
)