- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2002-2-7 06:58:39
|
显示全部楼层
Re: [ARX函数]:ARX可以调用lisp定义的全局变量吗?
最初由 fylinwater 发布
[B]以前做了很多lisp函数 现在想改用ARX 但在以前的lisp中定义了一些自己的全局变量 希望在arx中还可以直接调用 [/B]
int
acedGetSym(
const char* sname,
struct resbuf** value);
Include File
acedads.h
Retrieves the value of a bound AutoLISP symbol.
This function can be used in the ARX program environment only when AutoCAD sends the message kInvkSubrMsg to the application.
The sname argument specifies the symbol name. The value argument is set to a pointer in a result-buffer list (note the extra level of indirection) that contains the value of the symbol. If the AutoLISP symbol is bound to a value of a type that can't be represented by a list of ARX result buffers (such as a subr or exsubr), the acedGetSym() call fails. If the symbol is not found or is nil, acedGetSym() returns RTNORM and sets the contents of value (
*value) to NULL.
The acedGetSym() function returns RTNORM if it succeeds and RTERROR if it fails. When acedGetSym() fails, it sets the system variable ERRNO to a value that indicates the reason for the failure. |
|