I posted something a little bit ago on this subject, ``error trapping'', or
``variable restoration'' Do a serch for my name and you should find it
fairly easily (I havent posted much on this server.).
But if a direct toggle is what you want... Hows these?
(setvar "FILEDIA" (boole 6 (getvar "FILEDIA") 1)) ;; use XOR
(setvar "FILEDIA" (abs (1- (getvar "FILEDIA")))) ;; Use some math
wrote in message news:5471900@discussion.autodesk.com...
My memory is a bit sketchy... but that looks familiar.
However that is a toggle only.
Maybe I just need to
setq the original value from getvar,
setvar to "0" then
setvar the original value at the end...
Just thought i saw a sexier way to do it in the past...
In case you are wondering, I need it this way because I will end up running
this rountine in one of two situations:
1) In a normal setting - any old dwg open - where CMDDIA and FILEDIA should
be set to 1 already
2) Within a Hurricane script where CMDDIA and FILEDIA are set to 0 at
beginning of batch.
Using a toggle in situation #2 will jack up the rest of the batch run.
Thanks!