Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

how do you write a script file

Status
Not open for further replies.

jas1273

Mechanical
May 21, 2007
4
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

 
Replies continue below

Recommended for you

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

here is a nice, short tutorial,
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
 

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
 
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.
 
This has been covered a few times elsewhere. A script file can be created from Excel - see thread159-230306.

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

I hope it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor