Nil error in LISP

Nil error in LISP

Anonymous
Not applicable
1,601 Views
3 Replies
Message 1 of 4

Nil error in LISP

Anonymous
Not applicable

Hey guys,

 

I got a small but enoying problem:

Whenever I typ a command that I have in my LISP file it writes "nil" at the end of every prompt. this doesn't harm ynything but is really anoying because I want to prompt a message at the end of every command to show the user what just happend and so this "nil" relly doesn't fit there.

Any idea how I can remove this?

 

Thanks for your help Smiley Happy

0 Likes
Accepted solutions (1)
1,602 Views
3 Replies
Replies (3)
Message 2 of 4

dbroad
Mentor
Mentor
Accepted solution

The person who wrote the lisp, apparently didn't know much about what they were doing.

 

To get a command to end quietly, make the last expression in the LISP

(princ)

 

 

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 4

Anonymous
Not applicable

The person was me and I'm new to LISP writing. Smiley Wink

 

but thanks for the info. now it works

0 Likes
Message 4 of 4

dbroad
Mentor
Mentor

Glad you got it fixed.  If you're new to LISP, try viewing afralisp and visit the AutoCAD Customization forum.

Architect, Registered NC, VA, SC, & GA.
0 Likes