i wrote this a while back for joining lines, arcs & plines, it will work with either peditaccept setting and will NOT change it.
- ;join multiple lines/arcs;created: alan thompson, 4.23.08(defun c:mj (/ lines)(princ "\nSelect lines & arcs to JOIN: ")(setq lines (ssget '((0 . "*LINE,ARC")))) (if lines (progn (if (equal (getvar 'peditaccept) 1) (command "pedit" "m" lines "" "j" "" "") (command "pedit" "m" lines "" "y" "j" "" "") );if );progn (alert (strcat "\nHey " (getvar "loginname") " it helps if you actually select something to work with!")) );if (princ));defun
|