CAB Posted September 9, 2008 Posted September 9, 2008 Thanks CAB, Just out of interest, I have a few queries.... 1) (this may seem a little ignorant.. but I'm new to LISP) Why do you list your variables in the brackets after the (defun c:XXX ("here")... with a " / " ? 2) Why do you use the "vl-cmdf" instead of "command"? Thanks once again for your help. 1) to Localize the variables, it's good programing practice. 2) If you noticed the group of code wrapped in an AND function. This is done in order to execute each line of code until a nil return value. The nil return will stop execution of that sequence. In this case COMMAND always returns nil and I did not want the code to stop there so I could have wrapped the COMMAND in a (NULL to return T or the option I chose was to use a form of the command which does not return nil when properly executed. HTH, and glad you've got the code working. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.