TJ
You can start with something like this.
You will need to add some bells & whistles though as this has little
error checking and only draws a LINE object.
(defun c:lns (/ usercmd p1 p2 p3 dist cnt)
(setq usercmd (getvar "CMDECHO"))
(setvar "CMDECHO" 0)
(if (and (setq p1 (getpoint "\nStart of line."))
(setq p2 (getpoint p1 "\nPick end of line."))
(null (command "._line" p1 p2 ""))
(setq dist (getdist "\nEnter offset distance."))
(setq cnt (getint "\nEnter number of lines."))
(setq p3 (getpoint "\nPick side to offset."))
)
(progn
(while (> (setq cnt (1- cnt)) 0)
(command "._offset" dist (entlast) (polar p3 (angle p1 p3) (* dist 100))"")
) ; while
) ; progn
) ; endif
(setvar "CMDECHO" usercmd)
(princ)
) ; defun
(prompt "\nParallel Lines Routine loaded, Enter LNS to run.")
(princ)