Jump to content

Recommended Posts

Posted

I know very little about lisps. I'm kinda playing around with something and I've run in to problems. I want to draw a line between two existing lines that is a certain length.

 

i start with:

 

 

(command "_line" "m2p"

 

It gives me the option to pick two parts on the screen (i'll choose the two existing lines) and then I'm supposed to select the second point for the line (which I want it to be "@0,-200"). How would I pause for user input after "m2p" but auto insert the above ? Thanks

Posted
 
(command "_line" "m2p" pause pause "@0,-200" "")

Posted

Thanks. I knew it was something simple like that. I'm trying to teach myself some basic lisp programming by looking at other lisps I am currently using... I hadn't seen any use "pause" yet.

Posted

Pause is a handy one, for a continual pause, try something like this:

 

(while (> (getvar "cmdactive") 0)(command pause))

 

Also, remember in macros, a pause is notified by \

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...