Rename full path data of reference


 Product:MicroStation
 Version:08.11.07.443
 Environment:N\A
 Area:Reference
 Subarea:N/A

Problem

Rename full path data of reference file. Reference files have been moved to new location and the reference full paths need to be edited / updated.

Solution

Ref_Drive.mvba: rename drive letter+path Ref_Drive.mvba

Ref_Drive.mvba and/or the original: Ref_Laufwerk.mvba can be used to update the reference attachment's full path information either interactively or in a batch process.

To use:
- backup your files first
- interactive:
- run the mvba by:

selecting it in the VBA project manager

or keyin:

vba run [ref_drive]ref_drive

- in a batch process use the command line:

vba run [ref_drive]ref_drive old_path new_path

The string 'old_path' will be replaced by the string
'new_path',

Example 1:
Exchange the drive letter from C: to D: in the Reference file path(s):
vba run [ref_drive]ref_drive c: d:

Example 2:
Replace the full path(s):

vba run [ref_drive]ref_drive c:\folder_1\folder_2\ d:\folder_A\folder_B\folder_C\

In case the German interface is preferred over the English, use this information and following substitutions:

Ref_Laufwerk.mvba

The command line in such case needs to be changed from:

vba run [ref_drive]ref_drive

into:

vba run [ref_laufwerk]ref_laufwerk

The VBA projects are available for download here:

communities.bentley.com/.../ref_5F00_drive.zip

communities.bentley.com/.../ref_5F00_laufwerk.zip

Credits for creating the macro go to Artur Goldsweer (TSG-Kiel, Germany)


DISCLAIMER
Use of this program acknowledges this disclaimer of warranty: These programs are supplied as is. Bentley Systems, Inc. disclaims all warranties, express or implied, including, without limitation, the warranties of merchantability and of fitness of this program for any purpose. Bentley Systems, Inc., assume no liability for damages direct or consequential, which may result from the use of these program. We repeat Bentley Systems, Inc. does not warrant these programs. Use these programs at your own risk.

See also

Other language sources

 Original Author:Henricus Ligtvoet, Bentley Technical Support Group