本帖最后由 作者 于 2009-1-14 20:40:24 编辑
(vlax-put-property (vlax-get (vlax-get (vlax-get-acad-object) 'Preferences) 'OpenSave) 'AutoSaveInterval 1);每隔1分钟 可自定义 (if (not (equal (type dwg_reactor_Gohome) 'VLR-DWG-Reactor)) (setq dwg_reactor_Gohome(vlr-dwg-reactor nil '((:vlr-beginsave . GotoHome)))) ) (defun GotoHome(ii jj / time) (setq time (read (substr (rtos (getvar "cdate") 2 12) 10 4))) (if (> time 1728);下午5点28分 下班前 (alert "准备下班!") (command "LINE" ...) ) ) 本人把程序改动有有以下问题,有高手能解决吗? 执行一条 AutoCAD 命令 (command "LINE" ...) 时不能调用原CAD命令,不知此处该如何写法? |