我有这样一个pinfro.txt:(1 齿轮 1 45) (2 轴 1 45)
我用下面的程序将数据读入:
(defun c:data2(/ xh mc cl bz ); (setq data_list '()) (setq f (open "g:/pinfro.txt" "r")) (setq data (read-line f)) (while data (setq data_list (cons data data_list)) (setq data (read-line f))) (setq ldata(read(nth 1 data_list))) (setq xh(nth 0 ldata)) (setq mc(nth 1 ldata)) (setq sl(nth 2 ldata)) (setq clbz(nth 3 ldata)) (close f))
现在的问题是:我用(command "text" "m" (inters pt1 pt6 pt4 pt5)(/ hh 2)0 xh)在矩形中写xh所代表的文字"1",为什么写不上?请指教! |