- (defun c:tt(/ ss i csv str e ff )
- (setq ss(ssget'(( 0 . "*text"))))
- (if (not ss)(vl-exit-with-value 0))
- (setq i 0
- csv "E:\\工作表.csv"
- ff (open csv "w")
- )
- (repeat (sslength ss)
- (setq e(ssname ss i)
- str(cdr(assoc 1(entget e)))
- i(1+ i))
- (write-line str ff)
- )
- (close ff)
- )
-
-
|