We often have several fields for dates - mostly in title blocks and to update these texts when editing a drawing.
e.g. Dates for "Status", "Revision", "Plotted". Some you want to update automatically some only when required (not when somebody just has a lookaround in the file.
I would like to have a text "date" field that I click on and update to "today" (or any other given date from a calender)
BTW. the file property "Plotted at" can not be used for a field . I would make sense to have that property on each sheet model so I can use it as a timestamp there. And it shoud update during plotting so the printout or PDF shows that date (I know you can achieve this via printer driver border text, but I rather have that date integrated in the titleblock)
The current date and time can be retrieved by an Item Type expression - System.DateTime.Now() - and then then used in a Text Field as any other property. The date format can be set in the Text Field definition or via the expression syntax.
Jon Summers has also recently posted this solution with a very nice example dgn in a forum post (thx!)
Eduardo Lazzarotto wrote:
You can currently add the date information using named expressions
How? What are the steps to add today's date to a text field?
Hi Eduardo, can you help me out? The link you attached shows how to use named expression to drive the interface. I do not understand how to get a automatic updated date shown.
Hello Gerd, thank you very much for the great idea. You can currently add the date information using named expressions. We will look at a potential new text editor field in the future.
Here more details on the workflow: https://communities.bentley.com/products/microstation/w/askinga/4541/using-named-expressions-to-drive-interface-items-a-sample.