检查 AutoCAD 是否处于空闲状态并准备好接受来自进程外应用程序的自动化调用。 支持的平台:仅窗口 属性值只读:是的 类型:布尔
言论没有额外的评论。 例子工 务 局: 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 Visual 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-1-8 19:39
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.