你好
试试看。
- (defun c:Test (/ st s e)
- (and (/= "" (setq st (getstring t "\nEnter text value without Inch quotes :")))
- (setq s (car (nentsel "\nPick on Attribute :")))
- (= (cdr (assoc 0 (setq e (entget s)))) "ATTRIB")
- (entmod (subst (cons 1 (strcat st """)) (assoc 1 e) e))
- )
- (princ)
- )
|