CAD Forums > CAD General
Purge script not working
(1/1)
notredave:
All,
Good afternoon. Can someone please tell me why this script isn't working? I am using Lee Mac's script writer. And if someone doesn't mind adding purging regapps, I would appreciate it.
_.open *file* -purge A N _.close y
Thank you much,
David
57gmc:
What makes you think its not working? Can you purge the file normally without the script?
ronjonp:
Try something like this .. you're forgetting the "*" in the prompts. This will do regapps as well.
--- Code - Auto/Visual Lisp: ---(defun _purge nil (setvar 'cmdecho 0) (foreach x '("_A" "_R") (command ".-purge" x "*" "_N")) (setvar 'cmdecho 1) (princ))(_purge)
notredave:
ronjonp,
Thank you for this but how will this work in a script file? I am using Lee Mac's script writer.
ronjonp:
Make sure the sub is loaded then: _.open *file* (_purge) _.close y
Navigation
[0] Message Index
Go to full version