Website Name - an official New Hampshire Government website
Smaller text size Reset text size Larger text size
link to website translation page
CAD/D HomeMicroStationMXOpenRoadsDownloadsSearchNHDOT Homelink to website translation page

Sample XS-MS Macro Input File

Notable Changes for v8i

The variables HS and VS have been discontinued. Cross Section scales are now controlled in the project's configuration file (PCF) for MicroStation drawings. In the project's PCF, set the variable NH_XSSCALE=10 (or NH_XSSCALE=5 for 5 scale).

Specify a .DPW instead of .DPF. This causes MicroStation to create a Design model and not a MicroStation Sheet model. If you specify .DPW, you will need to change the MicroStation model property type from a Sheet model to a Design model after the drawing is created. While in MX, this drawing should be treated the same as any other .DPF drawing.

Always Export the MX drawing to Native format prior to working in MicroStation. A bug in the current version of MX causes problems in MicroStation when working on MX drawings. Using the "Export Native" command resolves that problem.

Refer to MX Drawing File Summary for a breakdown of drawing input files.

Before you begin

Check the project's MX directory for a file with the project name followed by a .mss extension. If this file does not exist, see a member of the CAD/D support staff before continuing this procedure. If it does exist, open the file with PFE or Notepad to verify it is correct. It should include the following settings:

Imperial Version
[SEED_FILES]
MX_MODEL_SEED=nhseedf2.dgn
MX_DRAWING_SEED=nhseedf2.dgn
MX_CELLSEED=exist-in.cel

Metric Version
[SEED_FILES]
MX_MODEL_SEED=nhseedm2.dgn
MX_DRAWING_SEED=nhseedm2.dgn
MX_CELLSEED=exist-in.cel

Sample Input Format (Imperial 10-Scale)

MOSS
IMPERIAL 10-scale CROSS-SECTIONS
01-2012, compiled by yourself

*** NH ROUTE ## ***

NEWDPF,DRAW.DPW
SUBS
SYSDEL,12345XSMCFM.DPW
SYSDEL,12345XSMCFM.DGN
999
NEWDPF,12345XSMCFM.DPW

DRAW,FSECT MCFM,FDESIGN MCFM
900,XS-MS
FD='',LR=MCFM,CS=E,FS=D,PS='',
DS='',DSL=E,PROJ=12345,XSD='',
TITLE='NH Route ###',XS=50020,XE=50230

Additional lines for Subgrade, General & Temporary sections
805,YELL
810,DASH,5=.3,.1,,.1,.1
826,F,5=50020,8=50230
826,Y,5=50020,8=50230
826,Z,5=50020,8=50230

999
DISPLAY
FINISH

Note: To plot 10-scale sections with the horizontal border, include the following variables in addition to the ones shown above:

sw=21,hd=4,vd=2,ml=2.4,mb=1.2

Sample Input Format (Imperial 5-Scale)

MOSS

IMPERIAL 5-scale CROSS SECTIONS
01-2012, compiled by yourself

*** NH ROUTE ## ***

NEWDPF,DRAW.DPW
SUBS
SYSDEL,12345XSMCFM.DPW
SYSDEL,12345XSMCFM.DGN
999
NEWDPF,12345XSMCFM.DPW

DRAW,FSECT MCFM,FDESIGN MCFM
900,XS-MS
FD='',LR=MCFM,CS=E,FS=D,PS='',
DS='',DSL=E,PROJ=12345,XSD='',
TITLE='NH Route ###',XS=50020,XE=50230,
sw=110,hd=20,vd=2,yt=10,yo=9,ol=-75,or=75,
hg=5,yg=5,gbi=-0.5,ml=14.4,mb=1.2

Additional lines for Subgrade, General & Temporary sections
805,YELL
810,DASH,5=.3,.1,,.1,.1
826,F,5=50020,8=50230
826,Y,5=50020,8=50230
826,Z,5=50020,8=50230

999
DISPLAY
FINISH

Note: All variables shown in lower case are in addition to the normal ones used. These must be added for proper formatting of the wider sheet.

Note: The values of YO & YT may need to be increased in particularly flat areas.

Required variables are HS, VS, LR and LB (shown in bold). 
Note: There are undocumented variables included within this macro that can alter the color of items being displayed.  They are not intended to be used when creating drawings for MicroStation. DO NOT adjust any of these colors if the drawing is to be transferred to MicroStation.

PV = Positive value
NV = Numeric value
CV = Character value

Variables
Variable Description Alt. Default
FD Indicates that this is the first drawing on a sheet FD=000 will not draw FD='' will draw '' 000
HS Horizontal scale (discontinued) --- ---
VS Vertical scale (discontinued) --- ---
LR Reference string label CV  
CS First character of existing ground sections CV  
FS First character of proposed ground sections CV ''
IN Station interval for sections Default is every station PV ''
PS Option to draw proposed sections. PS=000 will not draw proposed PS='' will draw proposed 000 ''
XS Start station Leave out for start of alignment PV 1st point
XE End station Leave out for end of alignment PV last point
DS

Option to draw detail labels. DSL must also be defined. DS=000 will not draw labels DS='' will draw labels

'' 000
DSL First character of sections strings cut over existing detail. These are used to display feature labels on the section drawing. This could be the same as CS or another section set Also set DS='' to display these labels CV ''
XSD Add utility and tree symbols. Section sets for these items must be created for these features. For more details see Adding Details to Cross Sections XSD=000 will not draw the detail objects XSD='' will enable this feature '' 000
YT Displacement between the top most point of the section and the top of the grid in the model's units per the number of strings Default YT=10m (20') PV 20
YO Displacement between the bottom most point of the section and the bottom of the grid in the model's units Default YO=10m (30') PV 30
PROJ Project identification number annotation CV ''
TITLE Title Annotation, any title text that contains SPACES must be specified between single quotes as shown in the above examples.  Never use non-alphanumerics such as '&'. CV ''
* SL Sheet length PV 36
* SW Sheet width PV 24
* HD Horizontal distance between sections. This value may need to be adjusted if sections are not drawn at the maximum PV 20
* VD Vertical distance between sections PV 20
* MB/MT Margin bottom / Margin top PV 24/10
* ML/MR Margin left / Margin right PV 10/1
OL/OR Maximum offset left of centerline / Maximum offset right of centerline NV -100/100
HG Horizontal grid interval NV 10
YG Vertical grid interval NV 10
GBK Minor grid option GBK=000 Grid off GBK='' grid on 000 ''
GBI Minor grid interval NV -1
SU Superelevation text (will not display if PS=000) SU=000 Superelevation off SU='' Superelevation on 000 ''

* Using values other than those in the examples above will adversely affect border placement once in MicroStation.


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