Hello, I am using AECOsim SS5 to develop an annotation cell as part of DataGroup item, whose attributes in DataGroup Explorer would generate sheet index in Excel format. I came across a challenge and was wondering if anyone knows of a suggestion.
I wanted to apply a command line using MbeSendKeyin to get a particular task automated so that I can apply this to over 500 sheet files. The line looks like this;
MbeSendKeyin "NamedView PlaceView ""xxxxx-xxx.dgn"" ""Design Model"" ""DV"" 0"
Currently, in order for the macro to continue to run, the line ""xxxxx-xxx.dgn"" must match the file name I have open. I have tried using FileName, DgnFileName, or $FileName to no avail. I am looking for a syntax that would continue the command by knowing the file that is currently opened. So far my batch process stops because it does not know the name of the next file that the batch process has opened.
Hi,
I think your solution is not good. MicroStation BASIC was deprecated many years ago, so it's highly recommended to use it anymore, especially for new projects. You should use MicroStation VBA instead of it.
I think the solution can be to create very short macro, which will check what design file and model are opened, will create a proper key-in and will send it using e.g. SendKeyin method.
The macro itself can be called using Batch Process tool for all sheet files.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks Jan, I appreciate the suggestion. I will look into using VBA for my future needs. Best,
Ken Shigemitsu