是不是由于捕捉造成的?加上三句试试!
(defun c:zbz ( / mdpt xdpt yxdpt zxdpt pt1 pt2 pt3 pt4 pt5 pt6 ss1 ss2 ss3) (setq osmode(getvar "osmode")) (setvar "osmode" 0) (print "欢迎使用biaoge124的指北针制定 \n 命令:zbz") (setq mdpt (getpoint "\n 请确定插入点:")) (setq ddpt (polar mdpt 1.5708 24.5)) (setq xdpt (polar mdpt 4.71239 11.5)) (setq yxdpt (polar xdpt 5.27099 18.868)) (setq zxdpt (polar xdpt 4.15379 18.868)) (setq pt1 (polar mdpt 4.36362 12.5)) (setq pt2 (polar mdpt 4.36362 15)) (setq pt5 (polar mdpt 1.63536 12.5)) (setq pt6 (polar mdpt 1.63536 15)) (setq pt3 (polar yxdpt 1.91957 7)) (setq pt4 (polar mdpt 0 2)) (command "_circle" mdpt 12.5 ) (command "_circle" mdpt 15 ) (command "_line" ddpt xdpt "") (command "_line" xdpt yxdpt "") (command "_line" xdpt zxdpt "") (setq ss1 (entlast )) (command "_line" ddpt zxdpt "") (setq ss2 (entlast )) (command "_line" ddpt yxdpt "") (setq ss3 (entlast )) (command "_trim" ss1 ss2 "" pt1 pt2 "") (command "_trim" ss2 ss3 "" pt5 pt6 "") (command "_bhatch" "p" "solid" pt3 pt4 "" ) (setvar "osmode" osmode) ) |