乐筑天下

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

[编程交流] Is (acad) a function?

[复制链接]

91

主题

428

帖子

326

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
474
发表于 2022-7-6 09:31:51 | 显示全部楼层 |阅读模式
Hello CAD-lovers,
I encountered a strange situation few minutes ago.
I find out (acad) is a function. As a result of calling it (I think) focus brings to AutoCAD screen, while you are in Visual LISP editor.
The color of function was blue, like other built-in functions.
Unfortunately now, after exiting AutoCAD and returning back to it, acad returns to black, and the value of it is nil.
Does any one know a way to find a clue to it?
回复

使用道具 举报

11

主题

98

帖子

87

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
55
发表于 2022-7-6 09:56:10 | 显示全部楼层
Can't trigger the response you are reporting.
 
The Aprops has a member listed "ACAD" which doesn't have any supporting documentation.
 
  1. (princ acad)
returns nil
  1. (acad)
reutrns error no function definition
  1. (setq acad *any value or object here*)
doesn't start a "Protected symbol" break loop.
 
acad in console returns  Unkown command
 
I tried each of the above in both acad 07 and Mech desktop 12
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:20:45 | 显示全部楼层
 
Same here, using Land Desktop 2009, Civil 3D 2011.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:46:01 | 显示全部楼层
'acad' sometimes appears as a protected symbol (not necessary a function) - I'm not entirely sure why however.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-7 01:56 , Processed in 0.322987 second(s), 60 queries .

© 2020-2025 乐筑天下

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