Printing Guide
Printing Guide
Printing Guide

Printing accounting variables

When you create a print from MicroStation, certain configuration variables are set for each print. Using the values of these configuration variables, a macro can be written that writes to a log file, recording the values of these variables. This information can be used for accounting purposes.

Listed in the following table are the variables that are set each time a print is created.

Variable

Description

MS_PLTDATE

Date that last print was generated.

MS_PLTDELTA

Print view delta in master units.

MS_PLTDELTA_UOR

Print view delta in UORs.

MS_PLTDGNDIR

Directory containing the last DGN file printed.

MS_PLTDGNFILE_ABBREV

Last DGN file printed (shortened version).

MS_PLTDGNFILE_LONG

Last DGN file printed (full path).

MS_PLTDGNFILE_SHORT

Last DGN file printed (without path).

MS_PLTDRVFILE_ABBREV

Print driver file used during last print (shortened version).

MS_PLTDRVFILE_LONG

Print driver file used during last print (full path).

MS_PLTDRVFILE_SHORT

Print driver file used during last print (without path).

MS_PLTENTITY

VIEW <view number> or FENCE_VIEW <view number>.

MS_PLTMODELNAME

Model name being printed.

MS_PLTORIGIN

Print view origin in master units.

MS_PLTORIGIN_UOR

Print view origin in UORs.

MS_PLTOUT

Name of last generated print output file.

MS_PLTPENTBL_ABBREV

Pentable used during last print (shortened version).

MS_PLTPENTBL_LONG

Pentable used during last print (full path).

MS_PLTPENTBL_SHORT

Pentable used during last print (without path).

MS_PLTSCALE

Scale used for last print (as a character string). For example, 70.0739 m:cm / IN.

MS_PLTSCALE_SHORT

Shortened version of MS_PLTSCALE. The appearance of this variable is controlled by the MS_PLT_SCALE_METHOD configuration variable. No units are included in the value, and the precision is limited to six. For example, if the print scale is 100 master units (meters) to 1 printer unit (inches), MS_PLTSCALE_SHORT will either be "1:100" or "100:1".

MS_PLTSHEETNAME

Name of paper size used. For example, ISO A3.

MS_PLTSHEETSIZE

Size of paper printed. For example, 11x17 (in).

MS_PLTSTATE

Set to "PREVIEW" or "REALPLOT". Used to distinguish a paper print from a preview (so previews aren't logged to the accounting log).

MS_PLTTIME

Time that last print file was generated.

The following variables are published when Batch Print outputs a document set:

Variable

Description

MS_PLT_DOCSET_NUMSETDOCS

The number of documents (rows) in the Batch Print file list. This number does not change depending on the number of items selected for printing.

MS_PLT_DOCSET_NUMPRINTDOCS

The number of documents (rows) in the Batch Print file list that have been selected for printing.

MS_PLT_DOCSET_CURRENT_SETDOC

The set document number currently being processed. This number is relative to the start of the Batch Print file list, regardless of the first document selected. For example, the current set document number for second row is 2, even if it is the first document being printed. This number remains constant while multiple models and/or boundaries are processed for a single document.

MS_PLT_DOCSET_CURRENT_PRINTDOC

The print document number currently being processed. This number is relative to the first printed document. For example, the current print document number for the second row is 1 if it is the first document being printed. This number remains constant while multiple models and/or boundaries are processed for a single document.

MS_PLT_DOCSET_CURRENT_NUMBOUNDS

The number of boundaries to be printed for the current document.

MS_PLT_DOCSET_CURRENT_BOUNDARY

The current boundary number being processed for the current document. This sequence begins at 1, and restarts with every document.

MS_PLT_DOCSET_CURRENT_PAGE

The current page number being processed. This sequence begins at 1, and increments for each printed document, model, and boundary. It is not possible to determine the number of pages in advance if multiple boundaries are used.

MS_PLT_DOCSET_CURRENT_MODEL

The model name of the current document being processed.

MS_PLT_DOCSET_CURRENT_DESC

The Batch Print description of the current document being processed.