Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

esc in script?

Status
Not open for further replies.

jtt

Computer
Oct 7, 2002
23
It may be very simple. But I'm new to using script files.
I would like to know how to end a repeating command. <Spacebar> won't work in the script as follows:

multiple
-insert
<<block name>>
x1,y1,z1 1 1 0
x2,y2,z2 1 1 0
etc.

I want to end the insert command here, so that I can add a new command.
 
Replies continue below

Recommended for you

Scripts are only tricky in the amount of hard returns that are needed. Here is a sample script for inserting two blocks.
-insert
c:\dwg\first_block.dwg
0,0



-insert
c:\dwg\second_block.dwg
100,100




previous line ended script
Hope this helps

 
After about 10 years using ACAD since ver 2 , last week I discover that you can do the same that the ESC key
just typing (command) at the command line or at a script line , or as a LISP instruction, with the () included.
I put it on a menu icon so I do not need tto use my left hand. You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
 
Hi Pardal,
That is the sort of information we should get from AutoCad online help.
Thanks a lot,
Jtt
 
Hi JTT:

Once my plant design professor told me:

Books are not slaves, they are our friend and one should treat so.

I got this tip reading, reading, and reading.

You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
 
I found this related tip by surfing and reading :).
Carl


For scripts use this workaround by defining (cancel) in lisp, simply
(defun SCRIPT-CANCEL ()
(command)
(command &quot;resume&quot;)
)
and in a SCRIPT.SCR:
..
[<script commands>]
(script-cancel)
[<more script commands>]
..
 
Hi Pardal and Carl,
I've been using transparent commands to avoid this problem (and/or by using Excel functions). But, of course, some commands cannot be transparent, and that still gave me some problem. Now, you have solved it.
I started using script files only since February this year, and I owe that to a Carl B. Is this the same Carl B?
Thank you very much.
 
Hi JTT:

My first job in ACAD was on 1991 under Release 2.16, in DOS
, ambar phopor 14&quot; Monitor, runing at a XT .
By that time I bougth my first mouse for $50 .
The task was to drw neighborhood blocks for a Gas company.
It was a mountain city so many were unregular poligon shape
and runing LOTUS 123 , I learn to do SCRIPTS, and furthermore than LISP is a powerfull tool for many case SCRIPT do it's work well done.

You can reach me at k281969@hotmail.com
but keep your post here for mutual benefits.
Pardal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor