You are currently reviewing an older revision of this page.
This Client Server article is republished in its entirety from 2004 for reference purposes.
By Bentley Technical Support Group 15 November 2004
This article is an update to an earlier article by Michael Dougherty, which includes a number of new MicroStation V8 VBA resources. There are now a number of new resources available to assist in the use of the MicroStation VBA object library.
Resources delivered with MicroStation V8 and MicroStation V8 2004 Edition
Examples delivered with MicroStation V8 and MicroStation V8 2004 Edition
A few examples are delivered with MicroStation V8 and 2004 Edition. They are located in the ...\Workspace\System\vba\examples folder. This list describes some of those examples included with MicroStation V8 2004 Edition 08.05.00.64:
Figure 3.
The Bentley Developer Support Group assists users with programming issues and questions. The programming languages currently supported are MDL, VBA, JMDL, and MicroStation Basic.
Bentley Developer Support is a great resource if you are having a logic problem or if you are trying to use an object that is not working as you expected. You can find examples created by the Developer Support group on MicroStation on the Web. They are located in a downloadable zip file called VBA General (V8VBAExamples.zip) located on the site's utilities page. It is accessible only to users who have a valid login and password. Scroll to the bottom of the page and you will see information about accessing these examples (Figure 4).
Figure 4.
The VBA General zip file contains various VBA examples that can do a multitude of things. These examples are updated regularly. When you download the V8VBAExamples.zip you will notice that there are no compiled *.mvba files, only the source *.bas, *.frm and .cls files. After the zip file is downloaded you will need to unzip it into a folder so that the sub folders for each example are also created, create the VBA Project (*.mvba) for the example you want to use, then import the source files into it.
There are a number of useful utilities on this Web page in addition to the VBA examples. It would be a good idea to download those utilities that may improve your workflow.
Some methods for opening this Web page:
Enter: http://microstation.bentley.com/resources/utilities.cfm into your favorite Web browser.
Bentley discussion groups are very good resources for users of MicroStation/J and higher versions. They allow you to meet other users of Bentley products, exchange ideas, and discuss a wide range of technical subjects. They can be accessed via most common discussion group newsreaders or Web browsers and are a good source of how-to tips, technical information, and programming techniques from Bentley employees and professionals who use our products.
For more information on the Bentley discussion groups, open the MicroStation Help file and search for discussion groups, or go to: http://selectservices.bentley.com/discussion/index.htm.
Why should you join the ‘Bentley.microstation.v8.vba' discussion group?
Many users and Bentley developers monitor this discussion group. You may be able to get a quick answer to a question or a recommendation on how to approach a specific issue. Your question about VBA may have been answered already. If another user has had the same issue, a solution or work-around may be posted. You can browse through all the issues and gather any source code or information that may be useful in the future. Occasionally, I browse through postings looking for a solution or work-around that may be useful for future projects.
Client Server includes many articles on various VBA topics. It is recommended that you search this Web page regularlybecause Bentley will keep adding more articles.
The Bentley Institute does the training for MicroStation and Bentley Software. There are currently two VBA Instructor-led courses available:
For more information on Bentley Institute courses, visit http://bentleyinstitute.bentley.com.
Client Server Archive