[VBA]vb中用SendCommand "(load "lsp")"运行lsp,怎样知道该lsp什么时候执行完
<P>vb中用SendCommand "(load "lsp")"运行lsp,</P><P>该lsp很大,又要运行下一个命令,</P>
<P>怎样知道什么时候执行完?</P> SendCommand只是发送命令,发送后就无法控制命令了。所以什么时候执行完也不知道。 <P>dim app as AcadAplication//假设已经定义</P>
<P>Sub Example_IsQuiescent()</P>
<P> dim state as AcadState<BR> Set State = app .GetAcadState<BR> If State.IsQuiescent Then<BR> MsgBox "AutoCAD is quiescent."<BR> Else</P>
<P> '此时状态为空闲<BR> MsgBox "AutoCAD is not quiescent."<BR> End If<BR>End Sub</P>
<P>可以在SendCommand发送命令后,用循环调用Example_IsQuiescent()</P>
页:
[1]