如何让程序记住上次输入的数值
(if (= ths nil)(setq ths 0)
)
(setq th (getreal (strcat "\n栏杆离板边距<" (rtos ths 2 0) ">:")))
(if (= th nil)
(setq th ths)
)
(setq ths th)
第一次输入th=100,程序执行完成后,下次再执行是th又变成0了,如何让它记住上次程序执行输入的th值。th 和ths都是局部变量 搞成全局变量啊,如果要让当前图纸记住可以使用扩展数据 亦可參用:
USERI1-5 System Variable
USERR1-5 System Variable
USERS1-5 System Variable
页:
[1]