This is my very first Lisp Routine. Somebody in my department said they wanted one command to turn all layers on and thaw all layers without using the layer manager or clicking 2 different express tool buttons (We are using AutoCAD2004 by the way).
So I said that should be easy enough, I will use that for my first routine.
Ok, I have the routine and it does everything that I thought it would. However, there is a prompt in the command line that says: "Unknown command" and returns the name of the routine.
Here is the code:
Code:
(defun c:ll ()
(setvar "cmdecho" 0)
(command ".undo" "begin")
(command "-layer" "thaw" "*" "on" "*" "")
(command ".regenall" "")
(command ".undo" "end")
(setvar "cmdecho" 1)
)
[ Moderator Action = ON ] What are [ CODE ] tags... [ Moderator Action = OFF ]
The lisp file name is ll.lsp
What is wrong?
Thanks for your help.