我想实现炸碎文本的功能,但下面的代码执行后没有一点反应,不知错在那里?
那位能不能帮我改正一下!
(Defun c:xptext () (SetVar "MIRRTEXT" 1) (setvar "osmode" 0) (PrinC "\\n选择要分解的文字 : ") (setq ss (ssget \'((0 . "TEXT"))) i -1 ) (while (setq s1 (ssname ss (setq i (1+ i)))) (setq pt1 (xyp-get-MinMaxPoint s1 1) pt2 (xyp-get-MinMaxPoint s1 9) pt (xyp-get-MidPoint pt1 pt2) pt3 (polar pt (* pi 0.5) 100) ) (Command "mirror" s1 "" pt pt3 "y") (command "zoom" "w" pt1 pt2) (command "wmfout" "TEXTWMF" s1 "" "erase" s1 "") (command "wmfin" "TEXTWMF" pt "2" "" "") (setq s1 (EntLast)) (command "mirror" s1 "" pt pt3 "y") (setq pt0 (xyp-get-MidPoint (xyp-get-MinMaxPoint s1 1) (xyp-get-MinMaxPoint s1 9) ) ) (command "move" s1 "" pt0 pt) (command "explode" s1 "") ) (setvar "MIRRTEXT" 0) ) |