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
RE: how do you write a script file
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
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
Used this utility many times and can be configured for different outputs.
I hope it helps