×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

esc in script?

esc in script?

esc in script?

(OP)
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.

RE: esc in script?

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

 

RE: esc in script?

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

RE: esc in script?

(OP)
Hi Pardal,
That is the sort of information we should get from AutoCad online help.
Thanks a lot,
Jtt

RE: esc in script?

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

RE: esc in script?

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 "resume")
  )
  and in a SCRIPT.SCR:
  ..
  [<script commands>]
  (script-cancel)
  [<more script commands>]
  ..

RE: esc in script?

(OP)
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.

RE: esc in script?

Hi JTT:

My first job in ACAD was on 1991 under Release 2.16, in DOS
, ambar phopor 14" 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources