1199| 4
|
字符串转变量 |
80明经币
最佳答案(defun getva(en attname / return e test ent)
(setq e en return nil test t)
(while(and test(setq e(entnext e)))
(setq ent(entget e))
(cond
((not(=(cdr(assoc 0 ent))"ATTRIB"))(setq test nil))
((=(cdr(assoc 0 ent))"SEQEND")(setq test nil))
((=(cdr(assoc 2 ent))attname)(setq return(cdr(assoc 1 ent))test nil))
)
)
return
)
(setq ss(ssget "x" '((0 . "I ...
| ||
| ||
| ||
| ||