VBA code to add reference files into a batch process.

I need to take all the attached reference files and add them into a batch process. I can iterate the reference files but I'm stuck on how to create / add to a batch process.  Is that possible with VBA code, and if anyone has a code snippet they can share?

V 10.16.00.80

Parents
  • Hi Michael,

    There are at least two ways of doing a "batch" process.  One would be to use Microstation's built-in batch process, and another would be to use VBA to open the files and do the work itself.

    If you have a list files in an array FileFullPathNames(), you could do something like

    For I = Lbound(FullPathNames) to Ubound(FullPathNames)
       OpenDesignFile FileFullPathNames(I)
       [do something to the file]
    Next

    --Robert

Reply
  • Hi Michael,

    There are at least two ways of doing a "batch" process.  One would be to use Microstation's built-in batch process, and another would be to use VBA to open the files and do the work itself.

    If you have a list files in an array FileFullPathNames(), you could do something like

    For I = Lbound(FullPathNames) to Ubound(FullPathNames)
       OpenDesignFile FileFullPathNames(I)
       [do something to the file]
    Next

    --Robert

Children
No Data