CAD Managers

Active Member
Posts: 9
Registered: ‎03-20-2014
Message 1 of 3 (250 Views)

Replacing Titleblock

250 Views, 2 Replies
03-21-2014 07:54 AM

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


0,0 1 1 0

(load "C:\\TITLEBLOCK\\border_update.lsp")


we dont know if its becuase there are spaces in the block name or what. Any help would be appreciated.



Distinguished Contributor
Posts: 140
Registered: ‎10-04-2006
Message 2 of 3 (230 Views)

Re: Replacing Titleblock

03-21-2014 11:43 AM in reply to: 13041995

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

BIE-Main Dialog.PNG

*Expert Elite*
Posts: 6,023
Registered: ‎05-21-2003
Message 3 of 3 (225 Views)

Re: Replacing Titleblock

03-21-2014 01:01 PM in reply to: 13041995

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.



Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.

Manufacturing CAD & IT Manager Resource
Additional information for installing, licensing & deploying Inventor, the Product Design Suites and Factory Design Suites.