(defun c:test1 (/ ent ents ang) (princ "选择要修改的文字,可多选") (setq ss (ssget '((0 . "*TEXT")))) (setq ang (getangle "\n输入角度:")) (setq k 0) (repeat (sslength ss) (progn (setq ent (ssname ss k)) (setq ents (entget ent)) (setq ents (subst (cons 50 ang) (assoc 50 ents) ents)) (entmod ents) (entupd ent) (setq k (1+ k)) ) ) (princ) )
|