Display full version of the post: Simple EXIT command

a41572
20.08.2008, 10:49
Hello,
 
I write Autocad commands in a text file what i can later paste in the command bar of  Autocad. My problem is simple, but more difficult to solve. I want to put some kind of exit command at the end of every line of command. For example:
 
_Line 0,0 10,10 *
_Line 10,10 15,15 *
 
This special exit command i would put in the place of "*", for every new line to start clearly, without any possible error coming from the previous commands. I know that in lisps and macro i can use ^c^c but this just doesn't work if i type it in the command bar directly. I can't use lisp or macro, so i need smg that lets le quit every residual commands before starting a new one (equal to pushing the escape button 2, 3 times).
 
Anyone has an idea?
 
Miklos

PepaR
20.08.2008, 11:41
I suppose tha continue in runnig script is solve possibly by some variable or some command in macro. I'm not be sure about that at this moment.
 
So as Enter on the end of command you can use character ;.PepaR2008-08-20 11:41:46

Arben.Allaraj
20.08.2008, 17:59


[QUOTE=a41572]Hello,
 
I write Autocad commands in a text file what i can later paste in the command bar of  Autocad. My problem is simple, but more difficult to solve. I want to put some kind of exit command at the end of every line of command. For example:
 
_Line 0,0 10,10 *
_Line 10,10 15,15 *
 
This special exit command i would put in the place of "*", for every new line to start clearly, without any possible error coming from the previous commands. I know that in lisps and macro i can use ^c^c but this just doesn't work if i type it in the command bar directly. I can't use lisp or macro, so i need smg that lets le quit every residual commands before starting a new one (equal to pushing the escape button 2, 3 times).
 
Anyone has an idea?
 
Miklos[/QUOTE]I don't know it is just your require but I post a little routine.(defun c:s-exit () (command "_line" "0,0" "10,10" "15,15""") (command "_quit" "y"))   If you want to close the lines on AutoLISP use "".Arben.Allaraj2008-08-20 18:06:27

PepaR
20.08.2008, 18:21
The way by Arben.Allaraj is better.