Smaller text size Reset text size Larger text size
skip navigation
NHDOT Home CAD/D Home MicroStation MX v8i Downloads
CAD/D Home > MicroStation > RefLev Programs

There are two Visual Basic programs for saving and retrieving the settings of reference file levels that are collectively referred to as RefLev. Make RefLev will save the reference file display and level display settings for a view. Open Reflev can recall those settings for the same drawing or a different drawing. This can be used to save a view for one drawing in a set of cut sheets and then recall it for a different sheet. By default, the currently active view is saved although the user has the option to select which view is recorded. For the programs to work properly, each reference file must have an associated logical name. Also, that logical name must be consistent for each drawing that the programs are used on (the NHREF macro sets logicals for the standard drawing references automatically). 

A typical scenario would be: Drawing 12345G01.dgn represents the first sheet of the general plans with a group of files attached as reference files. Using the Make RefLev macro, the operator saves the details of view 1. The next sheet, 12345G02.dgn, is opened. It also has a number of reference files attached using the same logical names as the previous drawing. At this point the Open RefLev macro is used to alter view 1 of that drawing to match the one saved from the previous file. If the view is to your liking, a save settings is required to save the view in your active file.

Make Reflev (modRefLev.MakeRefLev)

The Make Reflev program creates a text file storing the status of all levels (on/off & symbology settings) in the active design file and reference files, as well as the reference file display toggles (on or off). This file can later be used to restore the view in the file that it was generated from or another one.

NHDOT users can access the program from the NHDOT pulldown menu. For all others, VBA programs can be run by selecting Macro, then Macros... from the Utilities menu. A list of available programs will be displayed. Select modRefLev.MakeRefLev.

You will then be prompted for a name of the file to store the information. Next, there will be a prompt for a description of the file. This will be helpful if someone wants to know what type of view the file represents. After entering a description, you will see a dialog box asking which view to store. By default, the most recently used view will be stored, but you can choose any of the other views.

Once this file is saved, the view can be reproduced within this drawing or any other with the same reference files attached. The reference files are identified by the logical name associated with the reference attachment. Any reference attachment that does not include a logical will be ignored. Also, the program does not store the coordinates of the selected view, only information about the display settings associated with each level. Additionally, the files created by Make Reflev can be edited with any ASCII text editor.

Open Reflev (modRefLev.OpenRefLev)

The Open Reflev program loads a text file created by Make Reflev and applies all the stored settings to each level included in the data file. The data files are usually in the project directory. 

There are also some sample data files available for certain types of drawings. When prompted for the file to open, NHDOT users can navigate to N:\cadd\cadd\v8workspace\standards\reflev\ and select the file associated with the type of plan being created. These files are only intended to get you started. Each project will have its own special conditions that may require adjustments to the settings stored in these files.

In order for this program to work properly, reference files must be attached with the same logical names that were used when the data file was created. Any reference files that are attached to the drawing, but not included in the data file will not be updated. Reference file attachments that do not include logical names will not be updated.

 

To Be Aware Of

The Make Reflev program can only record level status for levels that exist.  If you have attached the .csv files to your dgns the program won't see the levels.  Therefore before working on cut sheet levels you should detach the CSV files from all standard drawings delete all levels that don't belong in that dgn and then Import the CSV file to create them.  Any elements in non standard levels should be moved to standard levels to comply with the cadd standards.





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