lvtao777 发表于 2004-8-19 10:21:00

回调函数可否含有ACAD的command?

<FONT color=#0000ff>在reactor的回调函数中可否含有ACAD的command。</FONT>


我只知道在回调函数中:


1-需要避免用户的输入;


2-必须具有参数来接收reactor的参数。


<FONT color=#0909f7>我所要调用的command并不需要用户输入,输入参数我都已经设好了。</FONT>

alin 发表于 2004-8-19 10:31:00

<UL>
<LI class=bullet_1>Do not use any interactive functions in your reactor callback function (for example, do not use getPoint, entsel). </LI></UL>
<P class=bullet_text>Attempting to execute interactive functions from within a reactor callback function can cause serious problems, as AutoCAD may still be processing a command at the time the event is triggered. Therefore, avoid the use of input-acquisition methods such as getPoint, entsel, and getkword, as well as selection set operations and the command function.
页: [1]
查看完整版本: 回调函数可否含有ACAD的command?