Jump to content

Fillet Not Working...


Lee Mac

Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    12

  • CAB

    7

  • Strix

    2

Top Posters In This Topic

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...