Wednesday, March 31, 2010

Title block pain

Just plodding my way through (pardon the pun) a bunch of Hazardous Area drawings and it was pointed out the the company logo had gone all funny. This is on about 40 drawings.

If you had 2 or 3 drawings you would just reinsert the block, redefining the old one. So you would think a script would be the go. This where I found out my ignorance regarding the insert command.

After some digging on the net I came up with parts to make this one:


An explanation:

-insert ......just issues the insert command without the dialog box. the name of the title block, and the = means that you wish to redefine it.
Y is the answer to the prompt "Do you want to redefine the block?"
(command) a means of cancelling the script-does not make much sense but it works!

Just one catch-you have to put the location of the directory of the block in file locations in autocad. Go Tools/Options etc.

Just use the cui to make yourself a button and you just click when you want the block redefined.

No comments: