Hi, the company i work at is in the process of changing their templates, to make sure that all the older drawings have the right titleblock we are attempting to write a script to update all the drawings in an automated process.
we have written a script file, a lisp program and a batch file.
the script file seems to be where is going wrong
INSERT A1H=C:\TITLEBLOCK\DWG\"SAC TITLE A1H"
0,0 1 1 0
ERASE L
(load "C:\\TITLEBLOCK\\border_update.lsp")
border_update
QUIT
Y
we dont know if its becuase there are spaces in the block name or what. Any help would be appreciated.
Thankyou
I think the process that you are describing could be done without a need for lisp/script, using the built-in command available in free batch process tools BatchInDatabase or BatchInEditor
You can replace the previous xref with new one using command "Xref-Replace Path"
If the previous title block is not an xref but block then use command "Block-Delete" first then "Xref-Insert" command to attach new xref.
let me know if you need more details about the batch process tool
I haven't used a script in years. But shouldn't the whole path to the file be enclosed in quotes?
I'm also confused by your use of Erase Last. It looks like you're inserting the file and then erasing it.
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.