Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
CAD Forums
»
CAD General
»
Topic:
Purge script not working
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Purge script not working (Read 2402 times)
0 Members and 1 Guest are viewing this topic.
notredave
Newt
Posts: 140
Purge script not working
«
on:
June 04, 2019, 12:29:45 PM »
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
Logged
57gmc
Bull Frog
Posts: 367
Re: Purge script not working
«
Reply #1 on:
June 04, 2019, 12:55:54 PM »
What makes you think its not working? Can you purge the file normally without the script?
Logged
ronjonp
Needs a day job
Posts: 7531
Re: Purge script not working
«
Reply #2 on:
June 04, 2019, 01:02:51 PM »
Try something like this .. you're forgetting the "*" in the prompts. This will do regapps as well.
Code - Auto/Visual Lisp:
[Select]
(
defun
_purge
nil
(
setvar
'cmdecho
0
)
(
foreach
x '
(
"_A"
"_R"
)
(
command
".-purge"
x
"*"
"_N"
)
)
(
setvar
'cmdecho
1
)
(
princ
)
)
(
_purge
)
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
notredave
Newt
Posts: 140
Re: Purge script not working
«
Reply #3 on:
June 04, 2019, 01:59:31 PM »
ronjonp,
Thank you for this but how will this work in a script file? I am using Lee Mac's script writer.
Logged
ronjonp
Needs a day job
Posts: 7531
Re: Purge script not working
«
Reply #4 on:
June 04, 2019, 02:28:11 PM »
Make sure the sub is loaded then: _.open *file* (_purge) _.close y
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
CAD Forums
»
CAD General
»
Topic:
Purge script not working