dim app as AcadAplication//假设已经定义
Sub Example_IsQuiescent()
dim state as AcadState Set State = app .GetAcadState If State.IsQuiescent Then MsgBox "AutoCAD is quiescent." Else
'此时状态为空闲 MsgBox "AutoCAD is not quiescent." End If End Sub
可以在SendCommand发送命令后,用循环调用Example_IsQuiescent() |