不用去改. 直接用ilsp写个固定的就好了.
第一种
(defun c:fe (/ a ent ) (SETVAR "PLINETYPE"2) (setq a (ssname (ssget) 0)) (setq ent (cdr (assoc 0(entget a )))) (if (OR(= ent "LWPOLYLINE") (= ent "POLYLINE")) (vl-cmdf "pedit" a "J" (SSGET) "" "") (vl-cmdf "pedit" a "" "J" (SSGET) "" "") ))
第二种
(defun c:fe (/ a ent ) (SETVAR "PLINETYPE"2) (setq a (ssname (ssget) 0)) (setq ent (cdr (assoc 0(entget a )))) (if (OR(= ent "LWPOLYLINE") (= ent "POLYLINE")) (vl-cmdf "pedit" a "J" "all" "" "") (vl-cmdf "pedit" a "" "J" "all" "" "") ))