 - ;excel输出成空格分开的txt文件
- (defun c:tt ()
- (setvar "CMDECHO" 0)
- (setq fn (if fn fn ""))
- (if (setq fn (getfiled "选择文件" fn "txt" 2)) (progn
- (setq fp (open fn "r"))
- (while (setq dl (read-line fp))
- (setq dl (read(strcat "(" dl ")")))
- (command "_.TEXT" (list (cadr dl) (caddr dl)) "" "" (vl-princ-to-string(car dl)))
- (command "-INSERT" (vl-princ-to-string(cadddr dl)) (list (nth 4 dl) (last dl)) 1 1 0)
- )
- ))
- (setvar "CMDECHO" 1)
- (princ)
- )
|