;;;从AutoCAD 2013 Active Reference帮助中code Examples中提取 ;;;本源代码由 xshrimp 2013.2.20 搜集整理,版权归原作者所有! (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.") ) )