Quantcast
Channel: Bentley Communities
Viewing all articles
Browse latest Browse all 4605

Program developed during our July 11th Users' Group meeting on VBA

$
0
0

At our July 11th meeting Dave Mayer walked us through the basics of VBA and how to write a program to create a grid based on the number of rows and the number of columns entered into a dialog box and entering two opposite corners of where the grid would be placed.

Asked Dave for a copy of the file we created, but instead Dave went "above & beyond" with a PDF explaining how the file is created and what each portion of the programing does.

The PDF has been posted to the "Files" tab of the TMC of St. Louis web page.

Here is what Dave put in the email:

"Greetings All,

The attached PDF file contains the code and commentary for a grid program written in VBA for MicroStation.  A form (FrmGridMaker and its controls), code module (Startup) and class module(ClsDrawGrid) will need to be created and populated with the code if you wish to duplicate the applet. The code appears in its entirety at the end of the document and may be cut from the PDF and pasted into the aforementioned modules through MicroStation’s  IDE code editor. 

Let me know if you have any questions.

Best Regards,

Dave Mayer

Bentley Systems, Inc."

If you geve it a try and it worked well, please comment and let us know.

If you had problems, please let us know.  Sometimes carriage returns or other ascii characters can cause problems with syntax when copied from a text file or PDF.

Our next meeting is scheduled for October 3rd.

Keep in Touch.

Mike


Viewing all articles
Browse latest Browse all 4605

Trending Articles