TheSwamp

CAD Forums => CAD General => Topic started by: POWECAT on April 07, 2023, 11:53:40 AM

Title: BATCH REPLACE TITLE BLOCK WITHOUT HAVING TO INDIVIDUALLY PURGE EACH DRAWING
Post by: POWECAT on April 07, 2023, 11:53:40 AM
First time Poster apologize in advance if this has already been addressed.

One of the more time consuming tasks I frequently come across is drawings with corrupted title blocks. The original creator did not put a unique attribute. Leaving many of the title block attributes RED. I am unable to run a batch attribute editor because it will change for instance every single REV attribute in the tile block. At this point I will edit all the attributes to have a unique identifier & then Use ATTSYNCH to update the attributes. I will then have to open each individual drawing delete the title block, purge and paste the new fixed block. Is there a way that I can run a batch block replacement saving the time of opening every drawing & purging?
Title: Re: BATCH REPLACE TITLE BLOCK WITHOUT HAVING TO INDIVIDUALLY PURGE EACH DRAWING
Post by: 57gmc on April 07, 2023, 01:21:46 PM
Not without getting into programming. If you can script the procedure for 1 dwg, then you can run the script withe ScriptPro (https://github.com/ADN-DevTech/ScriptPro-installer#start-of-content) do do the batch part. A script is just the characters you would enter at the command line. You use Notepad and save the file with an *.scr extension. It can also be run with the SCRIPT command.
Title: Re: BATCH REPLACE TITLE BLOCK WITHOUT HAVING TO INDIVIDUALLY PURGE EACH DRAWING
Post by: JohnK on April 07, 2023, 02:10:22 PM
<snip> then you can run the script withe ScriptPro (https://github.com/ADN-DevTech/ScriptPro-installer#start-of-content) do do the batch part. </snip>

I recommend using my batchscript running thing instead of scriptpro; mine uses accoreconsole instead of launching another autocad process to run the script(s).

https://www.theswamp.org/index.php?topic=56891.msg605601#msg605601