×
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

how do you write a script file

how do you write a script file

how do you write a script file

(OP)
we run acad 2002 at work. some of our customers use attributed title blocks, can some help find where to find instructions on how to write a script file to fill in the title block information...thanks

RE: how do you write a script file

It was in the old ACAD books if you can still find them in your local library.

RE: how do you write a script file

jas1273,

here is a nice, short tutorial,
http://www.upfrontezine.com/tailor/tailor19.htm
A script is like your commandline. No dialog boxes, no selection sets (normaly), etc...

Maybe you need a lisp. Do you want to insert this title block?

Or think about "_attout" and "_attin" command. Maybe it is a alternative...?

Lothar

ADT 2004

RE: how do you write a script file


jas1273:  I suspect that a script is not the best solution to your problem.  It's been a while since I've touched AutoCAD 2002, so I'm not sure how to get back to the commands that you would have at your disposal.

A Script file is simply a text file with .SCR for an extension.  You compose a script (in Notepad) by simply going through the commands that you would use doing the attribute revisions manually.

You would start with ATTEDIT, select the attributes, then run through the subcommands.  Do one manually, then flip to the text screen and copy & paste the command sequence into Notepad.  The problem that you'll have is keeping track of the sequence of multiple selected attributes.  Remember that a space or a <Return> in the script file has the same effect as in AutoCAD from the keyboard.

Probably not a great deal of help.  I'm sure there's a more elegant LISP solution.
 

Ralph
Structures Consulting
 

RE: how do you write a script file

I kind of wonder why the script file is not
part of the block.  Have you tried exploding
the block and see if the script file is attached?

Our title blocks enabled the script menu when
we clicked on them in our drawings.  It does
seem strange that your customers would not have
included that unless they did not want you to
have access or be able to change their drawing.

RE: how do you write a script file

This has been covered a few times elsewhere.  A script file can be created from Excel - see thread159-230306: Excel to Autocad.

Used this utility many times and can be configured for different outputs.

I hope it helps

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