Product: | MicroStation | ||
Version: | 2023 | ||
Environment: | N\A | ||
Area: | Batch Processing | ||
Subarea: | MSBATCH |
Running VBA in Batch Process Job with MSBATCH
Follow these steps to run VBA in a saved Batch Process Job using MSBATCH
• Edit Refs.mvba and add the following function
Public Sub OnProjectLoadNonGraphics()
End Sub
• Add the following lines to the cmdfile
MDL SILENTLOAD ustnvba
MDL SILENTLOAD Bentley.Macros.UI
E.g. of a cmdfile
MDL SILENTLOAD ustnvba
MDL SILENTLOAD Bentley.Macros.UI
vba load D:\Data\Tools\Refs.mvba
vba run RefReport
• Run msbatch from the product root folder C:\Program Files\Bentley\MicroStation 2023\MicroStation\
In some cases, you may have to right click on the command line application and Run As Administrator
Note: The above options have been documented in MicroStation Help. Refer link
Using The Batch Process Utility
Original Author: | Leonard Jones |