How to batch replace reference files in a bunch of drawings.

Before i begin please be aware that i have tried "RefRename.mvba" and it was unsuccessful.

Here is what i am trying to do.

I have a set of drawings (D1-D10), who each reference a drawing (R1) twice and have logical names TOP and BOT in all 10 dwgs.

refrename.mvba does not like when the same file is reference twice.

What i am looking for is a script / batch processes to replace R1 with R2 for both TOP and BOT in all drawings D1-D10.

extra info: D1-D10 are all in the same directory A and R1 and R2 are both in the same directory B

Any and all help is greatly appreciated. Thank you

  • Unknown said:
    I have tried "RefRename.mvba" and it was unsuccessful

    If you can write VBA, or have a colleague who can, then RefRename would be a great place to start to develop your own version.

     
    Regards, Jon Summers
    LA Solutions

  • Unknown said:

    Before i begin please be aware that i have tried "RefRename.mvba" and it was unsuccessful.

    Here is what i am trying to do.

    I have a set of drawings (D1-D10), who each reference a drawing (R1) twice and have logical names TOP and BOT in all 10 dwgs.

    refrename.mvba does not like when the same file is reference twice.

    What i am looking for is a script / batch processes to replace R1 with R2 for both TOP and BOT in all drawings D1-D10.

    extra info: D1-D10 are all in the same directory A and R1 and R2 are both in the same directory B

    Any and all help is greatly appreciated. Thank you

    Just on first glance  I think I have a work flow you could you nested files and  rename them to fool the ref manager?

    Create a nested  holding file  Called  R2 Nest which has R2 top and Bottom  set  in it how you  want 

    now  with  Batch process ref  attach R2 Nest  and  detach R1 both  descriptions, the  clipping  depends  on  how you set  up your drawings

    But without some examples its not too easy to work out how you make this work over multiple sheets or drawings

    for 10 drgs only you could use the  batch processor as above  and then open each drg and reclip if need be... manually... its only  10 plans..

    Next time  use nested  files, easy to replace with the vba macro...

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me