Hello,
In V8i edition, I used to launch MicroStation in batch mode to run a vba command on a lot of files with the help of batchprocess.ma
In connect Edition, I still can use MicroStation in batch mode as documented here: https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v14/en/GUID-3C9B4E83-F31A-0490-2990-3A9F62A888BD.html
This works perfectly well for standard MicroStation commands but it does not seem to work when trying to launch a vba macro although this command file below works well when launched interactively from the batch processing utility
I wonder if this is not possible on purpose.
#----------------------------------------------------------------------## Command file for batchprocess utility ## This command file was originally copied from $(MS_DATA)cmdfiletemplate.txt.# Command file information:# - Lines that start with the '#' character are treated as comments and ignored.##----------------------------------------------------------------------place circle #worksxy=0,0 #worksxy=0,5000 #worksvba load C:\ProgramData\Bentley\PCT\TestBatch\Test.mvba # ?macro vba run [Test]module1.start # ?
Hi Rémy,
be aware this is general Developers and Programming Forum. Because your question is about MicroStation, I recommend to move it to MicroStation Forum (or MicroStation Programming Forum alternatively). To move existing discussion, use More > Move tool, available under your original post.
Also, it's recommended to use Insert > Insert code tool every time not standard text (like code) is shared.
Rémy Weill said:I wonder if this is not possible on purpose.
Did you try to search MicroStation and MicroStation Programming forums? I remember loading / starting MVBA macros were discussed several times, as well as batch process.
Did you try to autoload Test.mvba using configuration variable and to test to run macro is fine?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hello Jan,
Thanks for your help
I searched into MicroStation and Microstation Programming forums and i an found discussions about my subject but in only refers to older versions of MicroStation.
My concern is about the launch of vba commands in batch mode in MicroStation connect edition. It used to work without problems in previous MicroStation editions.
Rémy