Invalid option keyword
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Invalid option keyword

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
bthatcher
Guest





Posted: Tue Apr 05, 2005 4:36 pm    Post subject: Invalid option keyword Reply with quote

I have to LISP routines in a single .lsp file. Only the first one will work when loaded. If I switch the order in the .lsp then the other one will work. After whichever one was first runs, it says 'Invalid option keyword'. Then when I try the other command is says 'Unknown command'. If I create separate .lsp files for the to 'commands', again only the first one that loaded works. I have attached the LISP in question. I am using them to turn on and off Xref's that are named 'X-Arch-#'. Any ideas what I am doing wrong? Thank you.

Back to top
Jürg Menzi
Guest





Posted: Tue Apr 05, 2005 5:03 pm    Post subject: Re: Invalid option keyword Reply with quote

Hi bthatcher

Missing quotation mark behind the layer name. Added international commands
for my german AutoCAD.
Code:

(defun c:xf ()
 (command "_.layer" "_off" "X-Arch-*" "")
 (princ)
)

(defun c:xn ()
 (command "_.layer" "_on" "X-Arch-*" "")
 (princ)
)


Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB