考虑以下因素:
- (defun c:catt ( / ent enx ref )
- (setq new "ref")
- (while (setq ent (car (nentsel "\nSelect attribute or text to replace <exit>: ")))
- (if (wcmatch (cdr (assoc 0 (setq enx (entget ent)))) "ATTRIB,TEXT,MTEXT")
- (if (entmod (subst (cons 1 new) (assoc 1 enx) enx))
- (entupd ent)
- )
- (princ "\nSelected object is not an attribute or text.")
- )
- )
- (princ)
- )
对我来说是这样(使用FF 40.0.2);如果不适合您,您仍然可以手动键入代码标签,即:
[突出显示][不突出]
- [/noparse][/highlight] Your code here [highlight][noparse]
[/noparse][/highlight] |