CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.091.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedSimple EXIT command

 Post Reply Post Reply
Author
a41572 View Drop Down
Newbie
Newbie


Joined: 20.Aug.2008
Status: Offline
Points: 1
Direct Link To This Post Topic: Simple EXIT command
    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
Back to Top
PepaR View Drop Down
Senior Member
Senior Member


Joined: 09.Jul.2008
Location: Czech Republic
Status: Offline
Points: 149
Direct Link To This Post 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 ;.


Edited by PepaR - 20.Aug.2008 at 11:41
PepaR
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post 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 "".



Edited by Arben.Allaraj - 20.Aug.2008 at 18:06
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com
Back to Top
PepaR View Drop Down
Senior Member
Senior Member


Joined: 09.Jul.2008
Location: Czech Republic
Status: Offline
Points: 149
Direct Link To This Post Posted: 20.Aug.2008 at 18:21
The way by Arben.Allaraj is better.
PepaR
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,188 seconds.