MicroStation PowerDraft CONNECT Edition Help

Printing Accounting Variables

When you create a print, certain variables are set for each print. Using the values of these printing 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 which the current print job was started, using the string representation appropriate for the current locale.
MS_PLTDELTA Print view delta in master units.
MS_PLTDELTA_UOR Print view delta in UORs.
MS_PLTDSCRIPT_LONG The full path of the design script file for the current print job.
MS_PLTDSCRIPT_ABBREV The full path of the design script file for the current print job, abbreviated to 34 characters.
MS_PLTDSCRIPT_SHORT The base file name and extension of the design script file for the current print job.
MS_PLTDGNDIR Directory containing the design file currently being printed.
MS_PLTDGNFILE_LONG The full file path of the design file currently being printed.
MS_PLTDGNFILE_ABBREV The full file path of the design file currently being printed, abbreviated to 34 characters.
MS_PLTDGNFILE_SHORT The base file name and extension of the design file currently being printed.
MS_PLTDRVFILE_LONG The full file path of the printer driver configuration file for the current print job.
MS_PLTDRVFILE_ABBREV The full file path of the printer driver configuration file for the current print job, abbreviated to 34 characters.
MS_PLTDRVFILE_SHORT The base file name and extension of the printer driver configuration file for the current print job.
MS_PLTENTITY The design area mode for the current print job. Values consist of VIEW <view number>, FENCE_VIEW <view number>, or SHEET.
MS_PLTMODELNAME The name of the model currently being printed.
MS_PLTORIGIN Print view origin in master units.
MS_PLTORIGIN_UOR Print view origin in UORs.
MS_PLTOUT The full file path of the print output file currently being created.
MS_PLTPENTBL_LONG The full file path of the pen table file for the current print job.
MS_PLTPENTBL_ABBREV The full file path of the pen table file for the current print job, abbreviated to 34 characters.
MS_PLTPWUSERNAME The ProjectWise user name.
MS_PLTPWUSERDESC The ProjectWise user description.
MS_PLTPSETFILE_LONG The base file name and extension of the pen table file for the current print job.
MS_PLTPSETFILE_ABBREV The full file path of the print set (PSET) file for the current print job.
MS_PLTPSETFILE_SHORT The full file path of the print set (PSET) file for the current print job, abbreviated to 34 characters.
MS_PLTPENTBL_SHORT The base file name and extension of the print set (PSET) file for the current print job.
MS_PLTSCALE Current print scale (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 the current print job. For example, ISO A3.
MS_PLTSHEETSIZE Size of paper used for the current print job. 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 at which the current print job was started, using the string representation appropriate for the current locale.
MS_PLT_SYSPRINTER_NAME The name of the Windows printer, if the system printer driver is being used.
MS_PLT_DOCSET_NUMSETDOCS The number of print definitions in the print set. This number does not change depending on the number of items selected for printing.
MS_PLT_DOCSET_CURRENT_SETDOC The print definition number currently being processed. This number is relative to the start of the print set, regardless of the first print definition selected. For example, the current print definition number for the second print definition is 2, even if it is the first print definition being printed.