The link provided below is a previous discussion on adding the current date in a text field when plotting. We currently use the $DATE$ and text substitution with our pen table. We also use $FILEL$ and when we are working on files hosted in our ProjectWise Managed Workspace the file path shows the PW path rather than the local copy path.
I am looking to replace the $XXXX$ text substitutions with Text Fields, but I am finding some issues.
1. When inserting a text field and selecting File Properties the only options available are Date Saved and Date Created.
The Date saved is not helpful if you are opening a project that was not actually worked on the day you are plotting it. Opening the file and printing would show the last date saved.
2. The File Name property shows the local copy rather than the PW path.
We need the PW path. If a subconsultant looks at a pdf file and would like to reference that file to one of their files they will have issues locating the file on PW. I've run into this many times. Even looking at our own files. If we have the PW path displayed it aids others in locating the files so you don't need to track down the person who knows where the files are located.
You can also see the Date plotted field is empty in the File Properties dialog. This probably would not be valid either since it would most likely display the date the file was printed last rather than the current date.
I defined the variable described in the post linked below, but I am not having any luck. Has there been any progress? At least for the date? I can't believe that this has not been addressed at this point and I am baffled why Current Date is not available. There has to be some way to extract this information and place it in a Text Field.
communities.bentley.com/.../621644
mwlong said:The link provided below is a previous discussion on adding the current date in a text field
The way to mark text for substitution at plot time (e.g. $FILEL$) has been around for decades. What we need is a way for environmental data to appear in a text field. That idiom is not available to us, although it could be obtained in a straightforward way through an extension of the current (Update 16) MicroStation technology.
$FILEL$
The text editor dialog lets us create a text field. The text field can display a property of an element, model or the DGN file. None of those options includes a value such as the current date.
What's needed is an additional option Environment. The Environment option would let us choose the date, time or other aspect of the host computer such as computer name or user name.
It's possible that one could achieve that by defining an Item Type that we attach to the DGN file. That instance would be available as additional file properties. Those would be eligible for inclusion in a text field.
mwlong said:We need the PW path
I'm assuming that your asking for a PW logical path and not the physical local path where files are copied while you work on them. That would require a MicroStation extension application for PW Explorer. Post an Idea!
Regards, Jon Summers LA Solutions
Jon Summers said:I'm assuming that your asking for a PW logical path and not the physical local path where files are copied while you work on them
Yes, that's what I was stating. The location of the local copy is not relevant to any other user. Others need to be able to locate the files on PW and the local path to another user's C: drive is no help.
Jon Summers said:The Environment option would let us choose the date, time or other aspect of the host computer such as computer name or user name
Yes, that is what we need. The current date is the minimum needed.
Microstation CONNECT - 10.17.2.61
ORD - 2021 R1 10.10.1.3
ORD 2022 R1.1 - 10.11.3.2
ORD 2022 R3 - 10.12.2.4
Microstation v8i SS 10 - 08.11.09.919
Power InRoads v8i - 08.11.09.615
ProjectWise - 10.0.3.453
mwlong said:Now I am interested in named expressions & item types
I'm pleased to have inspired you to investigate MicroStation further.
I've published the steps to replicate the DGN file with date and time annotations.
If someone can tell us how to get information from ProjectWise then perhaps I can add that to the example.
Did anyone ever figure out how to get the full PW file path with item type expression?
Steve Tissier said:Did anyone ever figure out how to get the full PW file path with item type expression?
I suggest that you post that question to the ProjectWise Design Integration Forum, which deals with ProjectWise.
Jon,
I was taking a look at this and how you made everything but I'm curious why the month that is written out is not updating nor the time is correct (I'm in Central Time btw). This is realy cool but don't know how it's updating or how to update it? I'm still trying to learn about Item Types so bear with me. Also I started with a blank dgn and after exporting your item types I imported them into the new dgn and assigned my text node (which was just copied out of your drawing) to the correct DateAndTime properties but all it will show is ####
Thanks,
Dan Jones said:I'm curious why the month that is written out is not updating nor the time is correct
What is the exact version no. (e.g. v10.x.y.z) of MicroStation that you are using? Use key-in VERSION to see the version no. in the MicroStation Message Center, or Help→About MicroStation in the backstage.
VERSION
See this blog that shows you how to obtain MicroStation's version number.
If you're using an additional product (e.g. ProjectWise, OpenXxx) let us know about that too!
Item Types and Expressions change with each Update! Sometimes those changes are not for the better...
Dan Jones said:I started with a blank dgn and after exporting your item types I imported them into the new dgn and assigned my text node
Please copy your DGN file here. Use the Insert=>Insert image/video/file menu to attach a file.