IsQuiescent 属性 (ActiveX) 
检查AutoCAD是否处于空闲状态并准备好接受来自进程外应用程序的自动化调用。 支持的平台:仅限 Windows 属性值只读:是的 类型:布尔 
 言论没有其他评论。 例子VBA: Sub Example_IsQuiescent()
    ' This example gets the acadState object and checks to see whether
    ' AutoCAD is in a quiescent state.
    Dim State As AcadState
    Set State = GetAcadState
    If State.IsQuiescent Then
        MsgBox "AutoCAD is quiescent."
    Else
        MsgBox "AutoCAD is not quiescent."
    End If
End Sub
可视化 LISP: (vl-load-com)
(defun c:Example_IsQuiescent()
    ;; This example gets the acadState object and checks to see if
    ;; AutoCAD is in a quiescent state.
    (setq acadObj (vlax-get-acad-object))
  
    (setq State (vla-GetAcadState acadObj))
    (if (= (vla-get-IsQuiescent State) :vlax-true)
        (alert "AutoCAD is quiescent.")
        (alert "AutoCAD is not quiescent.")
    )
)
 | 
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-11-4 07:56
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.