How to use text substitution in a MicroStation pen table to produce only the filename with no extens


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

Problem

How to use text substitution in a MicroStation pen table to produce only the filename with no extension.

Solution

From the Print menu, choose Pen Table>Edit>Text Substitution and use the following syntax:
Actual: any-text
Replacement: $(basename(_DGNFILE))