OK let me explain my intentions so what I'm asking will hopefully make sense. The way our titleblocks are inserted here is we enter job information into Access then use vba to retrieve values which which translate to attributes such as job name job number etc. We click a button which asks for drawing number and search the database. It then inserts a titleblock with pertinant info and the filename has a default value. To update the path you had to click another button but you had to do this for each layout tab which was a royal pain. Here is the macro hidden behind the filename updater:
^C^CZOOM;EXTENTS;_.TEXTEVAL 1 _-ATTEDIT _Y *;DWG-FILE *;_C (GETVAR "EXTMIN") (GETVAR "EXTMAX"); _V _R (DWGPATH) ;_N;z;p;
I first tried to edit the block and put no default value then over top of it I put a field but I encountered problems with fields and publish command so I changed the method to rtext. I had to add refresh to the plot and publish commands but all is working well so far. So my dilemna now is I need to update the legacy files and files we have in our library which may contain the block with the new block. I'm thinking I need to run a script which would open up the drawing and look for a couple of blocks. If it finds the block then it would somehow extract the values for the atrributes (if any) then it would purge the block from the drawing then reinsert the new block and fill in the attribute values. This could propbably be done in several ways I am just laying out what I need to do. Any ideas of how I might achieve this?