Modules
MicroStation SDK Examples

Modules

 Annotations Examples
 
 Constraints Examples
 
 Databases Examples
 
 DgnEC Examples
 
 DialogBoxes Examples
 
 Elements Examples
 
 IModels Examples
 
 IPCs Examples
 
 Legacy Examples
 
 Miscellaneous Examples
 
 Printing Examples
 
 View Examples
 
 Visualization Examples
 

Detailed Description

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

  1. At the MicroStation prompt, key in MDL LOAD <application> to load the application.
  2. Issue the key-ins provided by the application OR play around with the dialogs provided by the application.
  3. Unload the application by keying in MDL UNLOAD <application> (an optional step). If further application commands might be used, the application may remain loaded.

For example, to load the MYAPP example application, key in the following at the MicroStation prompt: MDL LOAD myapp


Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.