(defun c:j7 ( / D N E SS SS2)
(if (/= (getvar 'PEDITACCEPT) 1) (progn(setq pa (getvar 'PEDITACCEPT))(setvar 'PEDITACCEPT 1)))
(while (setq e (entsel "\n选择实体以确定图层:"))
(setq ss (ssget "x" (list (assoc '8 (entget (car e)))))
ss (ssget "p" '((0 . "POLYLINE,LWPOLYLINE,ARC,LINE")))
d (getdist "\n输入模糊距离<0.0>:"))
(cond
(ss
(if d
(vl-cmdf "_.pedit" "m" ss "" "j" d "")
(vl-cmdf "_.pedit" "m" ss "" "j" 0.0 "")
)
)
)
)
(if pa (setvar 'PEDITACCEPT pa))
(princ)
)