乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 17|回复: 17

[编程交流] Lisp Won't Stay Loaded

[复制链接]

1

主题

6

帖子

5

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 23:22:47 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-5 23:30:02 | 显示全部楼层
http://www.afralisp.net/autolisp/tutorials/loading-autolisp-files.php
Read that. It might help.
回复

使用道具 举报

1

主题

6

帖子

5

银币

初来乍到

Rank: 1

铜币
5
发表于 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.
回复

使用道具 举报

4

主题

2143

帖子

2197

银币

限制会员

铜币
-24
发表于 2022-7-5 23:35:05 | 显示全部楼层
See if this helps.. LEE MAC THE MAGNIFICENT
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 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.
回复

使用道具 举报

1

主题

6

帖子

5

银币

初来乍到

Rank: 1

铜币
5
发表于 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.
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 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.
回复

使用道具 举报

1

主题

6

帖子

5

银币

初来乍到

Rank: 1

铜币
5
发表于 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.
回复

使用道具 举报

5

主题

224

帖子

219

银币

初来乍到

Rank: 1

铜币
25
发表于 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.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 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.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-11 00:21 , Processed in 0.488010 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表