Hello,
I know the key in command for running a vba is VBA RUN [Projectname]Modulname.Subroutine,
and i can use this in the batch process script to batch run VBA code.
But this code only works if a VBA is loaded. What code will be in order to batch load a certain vba code.
Regards,
Kefan
Kefan Zhou said:I know the key in command for running a vba is VBA RUN [Projectname]Modulname.Subroutine
I found this in the keyin window by typing vba then in the window next column were all the options like "load"
First comes
VBA LOAD [ vba filename.mvba]
then comes your
VBA RUN [Projectname]Modulname.Subroutine
you can find a lot of keyins this way .. try it yourself in the keyin window with all the columns shown.. keyin any thing valid and see the available words
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
Hi Kefan,
The approach I would recommend to load multiple VBA macro's when you start MicroStation, is to add the following line to a CFG file in your workspace, that is processed during startup:
MS_VBAAUTOLOADPROJECTS > Projectname*
* Replace Projectname with the name of your .MVBA file
Repeat for each MVBA file that you want to automatically load, be sure you use the append symbol '>' and not a '='.
Once that's done, you can use the VBA RUN.... command in a Batch Processor Command File, without any issues.