How to get date and time stamp to plot using a single MicroStation pen table text substitution varia


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

Problem

How to get date and time stamp to plot using a single MicroStation pen table text substitution variable?

 

Solution

Workspace>Configuration>New>
Name: MS_PENTABLE_DATE_FORMAT
Value: %I:%M %p on %A, %B %d, %Y
Exit to Save changes
Exit MicroStation and re-enter

Place a long enough text string in your design file to contain the date and time.
For example, I used: $systemtimesystemtimesystemtimesystemtime$
(systemtime repeated 4 times)

Create/Edit/Attach pen table>Text Substitution> Edit>Insert New
Actual: $systemtimesystemtimesystemtimesystemtime$
Replacement: _DATE_
Save Pentable and attach

Results:
MS_PENTABLE_DATE_FORMAT=%I:%M %p on %A, %B %d, %Y
gives you ---> 02:36 PM on Thursday, December 10, 2009


From MS-J Help:
C:\Bentley\Program\MicroStation\readme_microstation_v71.htm --->
search for "pen table"
%H - hour using a 24-hour clock (00-23)
%I - hour using a 12-hour clock (01-12)
%p - AM/PM indicator for the 12-hour clock
%M - minutes (00-59)
%S - seconds (00-59)
%a - abbreviated weekday name ("Thu")
%A - full weekday name ("Thursday")
%b - abbreviated month name ("Nov")
%B - full month name ("November")
%d - day of the month as an integer (00-31)
%Y - four-digit year (1999)
%y - two-digit year (99)