- (defun c:get1(/ ff f1 ff1 cc i en data)
- ;该函数用于查看并返回对象的属性值。
- (setvar "cmdecho" 0)
- (setq cc nil i -10 en (entsel "请选取要查看属性的对象:"))
- (setq data (entget (car en ) '("*") ))
- ;(setq data (entget (car (entsel "请选取对象:"))))
- (setq f1 "对象属性缓冲区1.txt")
- (setq ff (findfile f1))
- (setq ff1 (open ff "a"))
- (if ff1
- (progn
- (write-line "" ff1)
- (write-line "最新得到的属性:" ff1)
- (princ data ff1)
- (close ff1)
- (startapp "notepad.exe" ff)
- ))
- (repeat 500
- (setq cc (assoc i data))
- (if (/= cc nil) (princ cc))
- (setq i (1+ i) cc nil) )
- (princ "\n 完 毕 。")
- (princ)
- )
你说的置为当前,是什么意思?
|