T.Willey wrote:
> When with SDI = 0, and running the recover script, it doesn't prompt for anything, weather it need recovering or not. It does work, but only on the first drawing in the script file, then it just stops without any error or any message.
>
> If no one can tell me why, then that is cool because it worked with SDI set to 1. I have no idea at all what is going one with scripts, so I can't even fathom a guess, so any insight is appreciated.
>
> Thanks.
> Tim
OK, now that I look back at your original two posts I see that you are
not really Recovering drawings using the RECOVER command. Your code
works fine here as:
(defun c:RecoverDwg ()
;(while (/= (getvar "lastprompt") "3M AutoCAD Configuration Loaded.")
; (command pause)
😉
(command "_.layer" "_m" "Defpoints" "")
(command "_.change" (ssget "x" '((0 . "VIEWPORT"))) "" "_properties"
"_layer" "Defpoints" "")
(command "_.mspace")
(command "_.zoom" "_extents")
(command "_.zoom" "1xp")
(command "_.pspace")
(command "_.qsave")
)
which I saved to a folder in my search path and added to my Startup
Suite. I then created the following script:
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\001.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\002.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\101.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\102.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\301.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\302.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\303.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\304.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\305.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\401.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\402.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\403.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\404.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\405.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\406.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\407.dwg"
recoverdwg qsave close
open "C:\Documents and Settings\Jones\My
Documents\DDPJob\testing\Main\408.dwg"
recoverdwg qsave close
and it ran on all drawings without a hitch. SDI = 0
Dave
DDP
ps: the QSave in your code is redundant