Documentation


VBA Help

The complete MicroStation COM Object model is described in the MicroStation VBA help system. There are several methods to retrieve this help system:

From MicroStation SDK command shell using the command vbahelp:

From the Windows explorer file system. The file MicroStationVba.chm is installed with MicroStation and can be found in the same folder where microstation.exe is installed.

From the VBA Editor the context sensitive help provides linkages between the MicroStation VBA keywords and the MicroStation VBA help file.

E.g. the open VBA Editor the cursor is positioned on a MicroStation keyword, like done here with ActiveModelReference:

 

The F1 context sensitive help open the MicroStatioNVBA.chm and jumps to the help for this keyword, like this:

The blue link “Example” additionally provides VBA code examples to demonstrate how to use the command:

In this example this dialog opens and provides a list of code examples:

The first selected example provides a complete code example:

 

With the MicroStation MetroStation Workset example a set of VBA projects are installed to cover themes not all covered with the help system:

It is also recommended to review our Communities: https://communities.bentley.com/

For VBA code snippets, examples and best practices.