明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1578|回复: 0

[转帖]回調函數中不能使SETVAR、ENTMOD….等的原因.

[复制链接]
发表于 2004-4-19 14:29:00 | 显示全部楼层 |阅读模式

Haven't had any problems with setvar but any reactor
that uses 'all-documents notification or is contained in
a separate namespace vlx might not work or might
operate inconsistently with setvar, since setvar works
only with the activedocument. Instead (vla-setvariable
can target a particular variable in a particular document).
The same thing goes with getvar vs. vla-getvariable.

If all your reactors are set up locally, then the above
might not be a problem. In some cases, an elock
violation can possibly occur, although I haven't noticed
that being a big problem. That seems to be more of
a problem with (entmod)
I don't believe sendcommand is a problem but its been
so long since I have played with it, I can't be sure. I knew
that (command... will cause a problem and make the
reactor not appear to operate. Some kinds of errors
don't report to the user within reactors. In general,
any command that would require user interaction should
definitely be avoided.

"觉得好,就打赏"
还没有人打赏,支持一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-10-1 12:57 , Processed in 0.173832 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表