What is the named expression to use for the design name and extension for the Print output filename?


  
 Applies To 
  
 Product(s):MICROSTATION
 Version(s):N\A
 Environment: N\A
 Area: Print/Plot
 Subarea: N\A
 Original Author:Beverly Dawn Gentry, Bentley Technical Support Group
  

Problem

What is the named expression to use for the design name and extension for the Print output filename?
For example, if the design files have .i01, i02, .i03 etc. extensions, when you plot using pdf.pltcfg, the desired output filename would be called filenamei01.pdf and filenamei01.tif depending on the pltcfg being used. Basically we need to include the file extension as part of the output filename. 

Solution

System.Path.GetFileNameWithoutExtension (PrintDefinition.SourceFile) & System.String.Substring (System.Path.GetExtension (Prin tDefinition.SourceFile), 1, -1)