Greetings all,
A quick way to purge bloated drawings is to wblock them and what I'd like to do is wblock them onto the original drawing then open that drawing or at the least close it. The lisp ran fine in R14 but in 2008 something's changed and it doesn't work.
I stripped out the extraneous stuff and got to bare bones:
That works fine but closing the drawing requires a save or no save. If I manually type in CLOSE and N at the prompt the new purged drawing is kept however if I add
to the lisp the drawing reverts back to its old bloated self.
What is the difference between typing it in and running the same command in LISP? Is there a fix for this?
Thanks,
Keith
A quick way to purge bloated drawings is to wblock them and what I'd like to do is wblock them onto the original drawing then open that drawing or at the least close it. The lisp ran fine in R14 but in 2008 something's changed and it doesn't work.
I stripped out the extraneous stuff and got to bare bones:
Code:
(setvar "CMDECHO" 0)
(setvar "EXPERT" 2)
(command "QSAVE" "WBLOCK" (strcat (getvar "dwgprefix") (GETVAR "DWGNAME")) "y" "*")
That works fine but closing the drawing requires a save or no save. If I manually type in CLOSE and N at the prompt the new purged drawing is kept however if I add
Code:
(command "close" "n")
to the lisp the drawing reverts back to its old bloated self.
What is the difference between typing it in and running the same command in LISP? Is there a fix for this?
Thanks,
Keith