PDA

View Full Version : unknown command for working command



caduzer
2006-11-21, 04:55 PM
I've written an AutoLisp script that runs purge, audit and then superpurge (3rd party program). Purge and audit work fine, but it says "unknown command" for "spurgeall" even though not only is it a command, but if, on the command line, I type "spurgeall" and hit the spacebar, it works fine.

Any ideas?

Thanks,
Scott

madcadder
2006-11-21, 06:00 PM
"show me the money!" um... code.

We would have to see what you have written to tell for sure.

Opie
2006-11-21, 06:09 PM
I've written an AutoLisp script that runs purge, audit and then superpurge (3rd party program). Purge and audit work fine, but it says "unknown command" for "spurgeall" even though not only is it a command, but if, on the command line, I type "spurgeall" and hit the spacebar, it works fine.

Any ideas?

Thanks,
Scott
Is this a file with a .LSP file extension or a .SCR file extension?

You may be able to add the following around "spurgall"

(c:spurgall)

Ogre
2006-11-21, 07:11 PM
Is this a file with a .LSP file extension or a .SCR file extension?

You may be able to add the following around "spurgall"

(c:spurgall)
Or...


(command "spurgeall")


but the way that Opie mentioned is the best and cleanest...