- (defun c:tu()
- (setvar "cmdecho" 0)
- (COMMAND ".UNDO" "BE")
- (command "-units" "2" "3" "2" "3" "" "")
- (setq fp (open "d:/POINT.xls" "a") s (getvar "cmdecho") n (getint "TOTAL NO: "))
- (princ "NO" fp)(princ "\t" fp)
- (princ "X" fp)(princ "\t" fp)
- (princ "Y" fp)(princ "\n" fp)
- (repeat n
- (setq k (getstring "\NO(如:1)!")
- p (getpoint "SELECT POINT!")
- x (strcat "X=" (rtos (nth 0 p)))
- y (strcat "Y=" (rtos (nth 1 p))))
- (princ k fp)(princ "\t" fp)
- (princ x fp)(princ "\t" fp)
- (princ y fp)(princ "\n" fp))
- (close fp)
- (setvar "cmdecho" s))
- (princ "\n提示:INPUT TU!")
- (princ)
|