Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
13041995
462 Views, 2 Replies

Replacing Titleblock

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

2 REPLIES 2
Message 2 of 3
abubakars
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

Message 3 of 3
AllenJessup
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

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.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report