CAD Managers

Reply
Active Member
13041995
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

 

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

Distinguished Contributor
abubakars
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*
AllenJessup
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.

 

Allen

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.

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