Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Odd message

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
186 Views, 3 Replies

Odd message

On checking my code before loading it the Build Output window announces the following:

 

[CHECKING TEXT obcmezz.lsp loading...]
.
; error: bad variable name in SETQ: (SETQ MEZZRATIO (/ MEZZAREA AR))
; Check done.

 

 This is translated into all caps from the lisp window, which reads:

 

(setq mezzratio (/ mezzarea ar))

 

Any ideas what this means?

3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: Anonymous

Without seeing the code it is difficult, but see if all "setq" are are closed properly and you don't have something like

i.e.

(setq a1 (+ a b)
(setq a2 (- c d))
 a3 (+ a1 a2))

 

 

EDIT: From the Help

"If you double-click on the error message in the Build Output window, VLISP activates the editor window, places the cursor at the beginning of the statement that caused the error, and highlights the entire expression"

 

 

HTH

Henrique

 

 

EESignature

Message 3 of 4
Anonymous
in reply to: hmsilva

 

Your last tip was interesting..

 

I was having a lot of trouble balancing parentheses today and you have led me to the problem- now fixed!

 

Didn't know about that double click trick. It highlighted a setq much further up that is orphaned and incomplete...maybe an unconscious paste. That led me to a progn that was also out of place. Good thing I don't make my living doing this.

 

Now I finally get to start setpping through it, or quit and have dinner.

 

Thanks!

Message 4 of 4
hmsilva
in reply to: Anonymous

You're welcome,
glad i could help

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost