[讨论][求助]一次性清空所有变量
<p>有没有办法一次性清空所有lisp文件中的变量,不管它是局部的还是全局的,也不管变量名</p> <p>把CAD关了再开</p> <p>;;大概是这样</p><p>(foreach x (atoms-family 1)<br/> (if (and (/= (read x) 'SUBR)<br/> (not (member x '("PAUSE" "T")))<br/> (/= (wcmatch x ":VL*-*"))<br/> )<br/> (setq x nil)<br/> )<br/>)</p> <p>学习了,谢谢版主</p> (member (strcase "$ko_bl") (atoms-family 1))) <p>变量名是删不掉的,只能将变量内容清空成nil。</p> <p>谢谢,受教了</p>
页:
[1]
2