erin0karr 发表于 2022-7-5 23:22:47

Lisp Won't Stay Loaded

I'm new to installing and using Lisps, I don't know what took me so long as I've been getting my CAD on since hs, I'm now 30. Anyway, I have noticed I will load it and a few minutes later have to re-load it as it's not recognizing the command anymore.
 
Thoughts? I'm sure it's user error.

Tuns 发表于 2022-7-5 23:30:02

http://www.afralisp.net/autolisp/tutorials/loading-autolisp-files.php
Read that. It might help.

erin0karr 发表于 2022-7-5 23:30:27

That just confirmed I have it loaded correctly. I guess my next question is, why do I have to re-load all the routines every time I close and re-open a drawing? I also noticed if I load a lisp in one drawing, it doesn't load it throughout CAD. I still have to load it in every open drawing.

SLW210 发表于 2022-7-5 23:35:05

See if this helps.. LEE MAC THE MAGNIFICENT

Tuns 发表于 2022-7-5 23:39:15

http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f4875513fb5cd10c4aa30d6b-7bd0.htm,topicNumber=d0e389930
I'm only on AutoCAD LT so I don't know much about LISP. Sorry if I cant help very much. Just look for the "Overview of AutoLISP automatic loading" in the link.

erin0karr 发表于 2022-7-5 23:41:37

It's all good, any help is appreciated Tuns. Hulk, I'll give that link a look at over my lunch break. Duty calls.

Tuns 发表于 2022-7-5 23:44:57

Would it be alright if I asked... are you on a job for A&M regarding the stadium they're building? Or adding to I should say.

erin0karr 发表于 2022-7-5 23:47:56

Nope, the architect isn't local.. I could completely be making this up but I want to say they're out of CA.

Tuns 发表于 2022-7-5 23:54:04

Ah that's good. That job is going to be a huge cluster ****. We didn't bother bidding it because of that reason. The architect is Populous.. and they look to be a global company.

Lee Mac 发表于 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.
页: [1] 2
查看完整版本: Lisp Won't Stay Loaded