How can Print Organizer's default print definition name expression and the output file name expressi


 Product:MicroStation
 Version:All
 Environment:N\A
 Area:Print/Plot
 Subarea:N\A

Problem

How can Print Organizer's default print definition name expression and the output file name expression be defined by the User? 

Solution

These configuration variables may contain either the name of an expression in a DGN library or an explicit expression string. It is important to note that these configuration variables do not override the default print definition name expression and output file name expression in existing print set files, they only affect new print set files.

MS_PLT_DEFAULT_PRINTDEF_NAME_EXPRESSION — overrides the software's
default print definition name expression.

MS_PLT_DEFAULT_OUTPUT_FILENAME_EXPRESSION — overrides the software's
default output file name expression.

The following will define the design file only.

MS_PLT_DEFAULT_OUTPUT_FILENAME_EXPRESSION =
System.Path.GetFileNameWithoutExtension (PrintDefinition.SourceFile)

The following will define <print counter>-<design name>

MS_PLT_DEFAULT_OUTPUT_FILENAME_EXPRESSION = System.String.Format ("{0:D3}", PrintDefinition.SetPrintDefNumber) & "-" & System.Path.GetFileNameWithoutExtension (PrintDefinition.SourceFile)

Refer to the delivered Express names and Expression values for the correct syntax.

See also

Other language sources

 Original Author:Todd Combs