MDL has been a powerful development tool since MicroStation 4.0, and it dates back to the early 1990s. At that time, MDL was the abbreviation of MicroStation Development Language, which was an extended language of Bentley based on the C language, and the compiler and linker were provided by Bentley. The final program extension is .ma, which is the abbreviation of the MicroStation Application. We call this development method PureMDL. You only need a source code editor to develop PureMDL, and other tools (compiler, linker, and debugger) are provided by Bentley.
As time went by, MDL was also advanced. Today MDL can be developed based on C++, so we can use Microsoft Visual Studio as a development tool to generate native code DLLs. At the same time, in order to retain some of the features of MDL (such as command tables, MDL-specific resources, etc.), we still need to generate a .ma file. We call this new MDL, NativeCode MDL, where the MDL is no longer MicroStation Development Language but MicroStation Development Library. Native code MDL enables you to write code using object-oriented programming, and also enables you to directly call any function that can be called in VC++.
Bentley released a brand new MicroStation CONNECT version (Mstn CE) software in August 2015, which has the following updates:
From a development perspective, the changes in the Mstn CE MicroStation SDK are even greater. Almost all functions have been repackaged with C++ classes. We can almost no longer call the old C functions for programming. This is what we have been hoping for and finally achieved. But at the same time, because it is a new C ++ package, it also brings a lot of learning burden to our development. This article is intended to lead everyone to learn this new MDL C++ programming. Although most of the original C functions are still supported, it is highly recommended that new C++ classes be used for new application development. MicroStation CE Update 14 version is used at the time of this writing, so all future code will be written based on this version. When you read these articles, there may be newer versions released, so please follow the instructions in the latest version to make appropriate adjustments.
To develop an MDL application under MicroStation CE, follow these steps to install the development environment:
1.Install Visual Studio
During the installation process, you must choose to install VC ++ (the default installation may not have this option selected), and you must also choose to install the Windows 10 SDK components.
2. Install MicroStation CONNECT
3. Install MicroStation CONNECT SDK
If you do not already have the MicroStation software and its development kit (SDK), you need to join the Bentley Developer Network (BDN) to obtain them. For more information about joining BDN, please contact Bentley's BDN team (bdn@bentley.com).
Since MicroStation CE is a 64-bit program, it must be installed on 64-bit Windows. The default installation locations of MicroStation and its development kit are as follows:
The following describes the components of the SDK one by one:
Next: [[Building a simple MDL Application]]