|
发表于 2022-7-5 23:55:43
|
显示全部楼层
This is because AutoLISP (& Visual LISP) runs within the Document Namespace, i.e. for every open drawing, there is an allocation of memory set aside for AutoLISP in which every defined function, variable & symbol is stored.
In this way, the same variable or function can hold different values in each drawing (namespace), without any inteference since the symbols cannot interact between namespaces.
For information on how to automatically load a program when a drawing is opened, see my tutorial here. |
|