大家好,
当我试图创建类似txt文件的附件时,我遇到了一个问题
谁能帮忙吗。
谢谢
- (defun c:test(/ )
- (vl-load-com)
- (initget 1 "txt csv")
- (setq filtyp (getkword "\nExport Type? (txt or csv)"))
- (setq top-str "" fname (getfiled "Specify File Name" "C:\\polyline size" filtyp 1))
- (setq getarea (command "AREA" "o" pause ))
- (setq area (getvar "area"))
- (setq string (rtos area))
- (setq sttxt(strcat "Area=" string))
- (open fname "w")
- [color=red] (write-line sttxt fname)
- [/color] (close fname)
- )
|