- (defun c:tt (/ ffn ff txt pt st)
- (setvar "cmdecho" 0)
- (princ "\n----------<<坐标点输出到文件 >>------------")
- (setq ffn (getfiled "写出文件" "" "txt" 1))
- (setq ff (open ffn "a"))
- (setvar "pdmode" 34)
- (setq i (getint "\n起始编号:"))
- (while (setq pt (getpoint "\n节点位置: "))
- (setq st (list (strcat "n" (itoa i)) " " (car pt) " "(cadr pt) "\n")
- i (1+ i))
- (mapcar '(lambda(x)(princ x ff)) st)
- )
- (princ (strcat "\n写出文件: " ffn))
- (close ff)
- (prin1)
- )
|