skip navigation Official NH Website

NHDOT CAD/D Development

This page briefly describes NHDOT developed programs available to other CAD/D users. It also lists known programs, variables, or other settings that must be in place for the programs to work properly. 

Return to the list of available files to download the zip file containing these programs.

MicroStation Macros 
Macro Description Dependencies
cellscan Used by the MX PointScan add-in for listing MicroStation cells in currently open file. Not intended to run separately.  
linestysc Used to change the scale of all linestyles on the drawing.  A dialog will display prompting you for the scale. Enter a scale and click on Ok. Click cancel if you would like to exit the macro without changing the line styles in your drawing.
nhref Used to attach the standard project drawings to the current design file.  Reads drawing names from a file called drawlist.txt in the "macros" directory under the directory defined by _USTN_SITE. The macro will need to be modified to define the location of this file. Variables for reference file path (MS_REFDIR) and state project number (STNO) must also be defined.  The project number is prepended to all file names to conform to Department standards.

slopeset & slope

These two macros are used to annotate slopes of lines. They are primarily used for cross-sections. The slopeset macro is used to adjust format settings to be used by the slope macro.

Two other macros - slopeChkXS and slopeXSpct - are used by the qa_input rule files to set standardized formats for cross-sections. 

Station-Offset

This documentation describes a set of routines developed by Rowse Company (now part of ProSoft) to:

  • plot a cell at a specified station and offset

  • annotate a bound or property corner

  • give the station and offset of a selected point

See Station & Offset Programs for more detail.

The cell library StnOffset.cel must be within the MicroStation search path.

The mdl program pointFn.ma must reside in a directory in MicroStation's mdl search path.  These directories are defined by the variable MS_MDLAPPS.

 

MicroStation VBA Routines
Program Description Dependencies
CurveData 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 Reads report created from the "NHAliReport" MX add-in.
Make Reflev & Open Reflev Make Reflev is used to save the status (on/off, symbology styles) of all the levels of reference files to a text file.

Open Reflev loads the text file created by Make Reflev and applies all the settings/levels. Additionally, you could edit the files with any ASCII text editor if you wish.

 
NHAlign Used to clean up an alignment on a MicroStation drawing created by the MX "NHAlign" add-in. For details on the whole process of creating MicroStation alignment drawings, see Creating a MicroStation Alignment Drawing (v8) Reads previously created report from the "NHAliReport" MX add-in. This routine ends by running the mxAliEdit VBA program. 

For it to run properly the DGN file must contain NHDOT's alignment tagset and levels from the ALI.csv file must be imported.  Also, variables for the project's scale and unit must be defined. They can be defined in the project's PCF file or other convenient location. For example:

metric project Imperial project
NH_UNIT = m
NH_SCALE = 500
NH_UNIT = ft
NH_SCALE = 50

ProfEdit

Used to modify a profile drawing created with MX's NHProfile add-in.  Elements are moved to their proper levels and line styles/weights are adjusted.  For more details about the entire process of transferring MX profiles see Transferring MX profiles to MicroStation Used after MX's NHProfile add-in. The PRO.CSV level library needs to be attached prior to running the program. The SetScale BASIC macro must be available.
This program replaces the MicroStation/J ProfEdit EdG routines.

XSEdit

Used to modify a cross-section drawing created with MX's XS-MS macro. Elements are moved to their proper levels and line styles/weights are adjusted. For more details about the entire process of transferring MX cross-sections see Transferring MX cross-sections to MicroStation Used after MX's XS-MS macro. The XS.CSV level library needs to be attached prior to running the program. The SetScale BASIC macro must be available.
This program replaces the MicroStation/J XSEdit EdG routines.

MX Add-In Index
Add-In Description Dependencies
ConRepo Produces an ASCII file containing XYZ coordinates of strings in the selected model.  
NHAliReport A program based on Maine DOT's "MDOT DAB" to create a formatted report of an MX alignment.  This report can also be used to plot curve data on a MicroStation alignment. The report produced is not in a format acceptable for submission of COGO data, it is only intended to be used by other programs.  
NHAlign Used to create an alignment drawing that can be transferred to MicroStation. This program uses the NHDOT modified mxroad style set to create the base drawing before it adds annotation. At its completion, this program calls NHAliReport.exe. These file no longer need to exist on the computers C: drive.

After transferring the drawing to MicroStation, the NHAlign VBA program must be run to make some adjustments.
NHDraper Used to add elevations to one or more strings in a model. This is a modified version of Infrasoft's String Draper program.   
NHProfile Used to create an profile drawing that can be transferred to MicroStation. The mx macro prelprof.mcm is used to create the base profile before annotation is added. The prelprof macro can be found in nh-macro.zip
PointScan Used to create a report of project features referenced by station and offset. A MicroStation macro (CELLSCAN) is called. If it cannot be located, the user is prompted for its location.
XSDetail Used to create section sets representing detail symbols plotted on cross-sections.

Return to the list of available files to download the zip file containing these programs.