Smaller text size Reset text size Larger text size
skip navigation
NHDOT Home CAD/D Home MicroStation MX v8i Downloads
CAD/D Home > MicroStation > MicroStation and Visual Basic

MicroStation v8 includes the capabilities to use Visual Basic for Applications (VBA) for the development of macros.  This is the same functionality that exists for development of macros in Word, Excel and other Microsoft applications. Eventually the former macro language will be discontinued and all programs will need to be rewritten in VBA.

VBA programs can be run by selecting Macro, then Macros... from the Utilities menu. A list of available programs will be displayed. Since most users will not be familiar with the VB program naming conventions, it will usually be easier to select programs from the NHDOT menu.

If no macros are listed, select Macro, then Project Manager from the Utilities menu. Click the Load Project button (second from the left). NHDOT users select nhdot.mvba in the DOT workspace and try listing the macros again. For people outside NHDOT, download the file containing V8 macros and other NHDOT programs. 

CurveData (CurveData.main)

Used to add alignment curve data to a drawing.  This program uses data from the cogo-style report created with the MX add-in NHAliReport. This program has been enhanced to provide data for spiral curves.

EXDUpdate (modEXDUpdate.Main)

MicroStation cells and some linestyles need to be adjusted when transferring between 50 and 20 scale Imperial or 500 and 250 scale Metric projects. This is accomplished by using the modEXDUpdate.Main macro. This macro relies on the projects current PCF file for the target scale. Enter MicroStation, then from the Utilities menu, select Macro => Macros… => modEXDUpdate.Main. Do not attempt to run this macro in an MX session, it will not work properly. 

NHAlign (modNHAlign.main)

VBA program used to modify an alignment transferred from MX to a MicroStation drawing. For details on the whole process of creating MicroStation alignments, see Creating a MicroStation Alignment Drawing (v8i).

NHRef (modNHRef.main)

VBA program used to attach a standard list of reference files. For details about this program, see Attaching Reference Files.

Make Reflev (modRefLev.MakeRefLev)

Saves the status (on/off, symbology styles) of all levels in the active design file and reference files, as well as the reference file display toggles (on or off) to a text file. See RefLev Programs for more details.

Open Reflev (modRefLev.OpenRefLev)

Loads the text file created by Make Reflev and applies all the settings/levels. See RefLev Programs for more details.

PROFEdit (modEdG.ProfEdit)

Used to modify profile data that has been transferred from MX.  This macro should only be run on drawings that have been recently transferred from MX.  Any other edits made to the drawing between the time it is created and this macro is run could yield unpredictable results.  For more details about the entire process of transferring MX profiles see Transferring MX profiles to MicroStation

Sign Footing (modSignFoot.main)

Used to draw sign footing plans. For more details about the program see Sign Footing Macro

XSEdit (modEdG.XSEdit)

Used to modify cross-section data that has been transferred from MX.  This macro should only be run on drawings that have been recently transferred from MX.  Any other edits made to the drawing between the time it is created and this macro is run could yield unpredictable results.  For more details about the entire process of transferring MX cross-sections see Transferring MX cross-sections to MicroStation



New Hampshire Department of Transportation
PO Box 483 | 7 Hazen Drive | Concord, NH | 03302-0483
Tel: 603.271.3734 | Fax: 603.271.3914

copyright 2014. State of New Hampshire