The MicroStation CONNECT SDK includes a number of sample applications that are delivered in the examples directory. The examples are categorized in different directories based on functionality. This chapter briefly describes these sample applications.
The delivered examples are small, complete examples. Typically, they perform some function, but may not be really useful. Some of the examples implement extensions that MicroStation users have requested, but the majority of the examples illustrate fundamental concepts instead of just illustrating the calling sequences of functions.
Building sample applications
The MDL development tools are in the directory ../bin. The MicroStation Developer Shell (MicroStationDeveloperShell.bat) is in the MicroStation CONNECT SDK installed directory. It is highly recommended to use this Shell to compile applications. Even if you want to create a custom development environment, you should start with the Shell that is installed with the MicroStation CONNECT SDK.
The examples have their own directories and all have makefiles. To build one of these, change your current directory to the directory that contains the example. Then run BMAKE specifying the name of the application (note that if the MKE filename is the same as the name of the folder that it is in, you can run BMAKE without specifying a MKE filename). For example, enter the following sequence of commands to build the MYAPP application:
cd ../examples/DialogBoxes/myapp bmake
Running sample applications
To run applications from MicroStation
For example, to load the MYAPP example application, key in the following at the MicroStation prompt: MDL LOAD myapp