Print Page | Close Window

Simple EXIT command

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1027
Printed Date: 12.Jun.2026 at 12:58


Topic: Simple EXIT command
Posted By: a41572
Subject: Simple EXIT command
Date Posted: 20.Aug.2008 at 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



Replies:
Posted By: PepaR
Date Posted: 20.Aug.2008 at 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 ;.


-------------
PepaR


Posted By: Arben.Allaraj
Date Posted: 20.Aug.2008 at 17:59
Originally posted by a41572 a41572 wrote:

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


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



-------------
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com


Posted By: PepaR
Date Posted: 20.Aug.2008 at 18:21
The way by Arben.Allaraj is better.

-------------
PepaR



Print Page | Close Window