Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
Printing and Plotting
  • Product Communities
  • MicroStation
  • Printing and Plotting
  • Cancel
Printing and Plotting
Printing and Plotting Wiki Display active files last saved date and time in print border.
    • Sign In

     
     Questions about this article, topic, or product? Click here. 

    Display active files last saved date and time in print border.

     

    Background

    This article presents adding a Named Expression value to the Print border text.

     

    Steps to Accomplish

    Create a Named Expression "FileLastSavedTime" (preferably in a DGNLIB file)

    • Select the "Utilities > Named Expressions" menu item to load the Named Expressions dialog.
    • Select the "New" icon in the toolbar, and enter "FileLastSavedTime" in both the "Internal Name" and "External Name" fields.
    • In the combo box to the right of the list box under "Symbol Sets", select "Active File" and pick the Add button. Repeat for "System.String" symbol set.

    • In the Expression field enter the following string.

    • Select the "Test" button to view the value of the expression.

    • Select the Save icon on the toolbar.
    • Close the Named Expression dialog and save the changes “File > Save”

     

    Apply the Named Expression to the Printer Driver File

    • Select the "File > Print" menu item to load the Print dialog.
    • From within the Print dialog select the “File > Select Bentley Driver” menu item and choose PDF.pltcfg as our Printer Driver Configuration File.
    • Select “File > Edit Printer Driver Configuration” for editing.
    • Select “Base Properties” Tab.
    • Select “Print Border” section.
    • Set “Border On” to True.
    • Set “Border Outline On” to True.
    • Set “Include File Name in Border Text” to True.
    • Set “Include Date/Time in Border Text” to False.
    • Set “Border Comment” to <expr?name=FileLastSavedTime>

    The Named Expression value would be appended to the Border Text.

    • Select the “File > Save” menu item to save the changes.
    • Select the “File > Exit” menu item to close the Printer Driver Configuration dialog.
    • Select the “File > Reload Printer Driver Configuration” to reload the updated driver.
    • Select the “Print” icon and test the Border Text. A sample is attached below.

     

    Note: Whenever the design is printed, MicroStation sets the PIDSI_LASTPRINTED file property.
    This changes the file modification time, unless the design was opened in read-only mode.
    If you set the configuration variable MS_PLT_SET_LAST_PRINTED_TIME=0, MicroStation will not set PIDSI_LASTPRINTED.

    See Also

    Tutorial: Including the Date in Print Output File Names

    How can I combine the path to the design file name, date and time file into a single string inside of a MicroStation pen table?

    • Pen Table
    • Printing
    • Design Script
    • MicroStation
    • Share
    • History
    • More
    • Cancel
    • Leonard Jones Created by Bentley Colleague Leonard Jones
    • When: Wed, Jan 21 2015 11:52 AM
    • Leonard Jones Last revision by Bentley Colleague Leonard Jones
    • When: Thu, Jan 22 2015 8:53 AM
    • Revisions: 7
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies