I was looking at 'Text Fields' and hoping that I could use a customized Field to display the current session's Project (PCF File). The objective here is to display on the CADD file (with an automatically updating Field) the current workspace, within the border model/file. My desire it to have it "displace" in real-time rather than just as a dialog popup when the file is opened.
We have several customized and heavily used workspaces. Users are not necessarily checking to see if they loaded the correct workspace, when they open a CADD file. (I have fallen victim to this myself from time-to-time.) This is not a full proof solution... But it is closer. At least with this kind of mechanism, they can look and see (on the design plane / within the border) their "current" Project PCF (workspace). To be honest, I don't even want users to edit a Tag or Text, when they create a new border. This will static in natural and will not display the active session, in later CADD file edits.
Is this even possible? If not is there another way I can set this up?
Unknown said:It is a pretty simple hack of LA Solutions MicroStationCaptionEventHandler vba
Which you will find here. It's been updated to show the project workspace name and some other stuff.
Regards, Jon Summers LA Solutions
I have a VBA that I use at startup. It shows Project, User Interface and File name in the main application titlebar where you normally see filename. MicroStation V8i ()
It is a pretty simple hack of Jon Sommers MicroStationCaptionEventHandler vba.
You could create a custom variable in each .pcf file, then display that with vba along the top caption of MicroStation. Use this
ActiveWorkspace.ConfigurationVariableValue("YOUR_PCF_VARIABLE")
with the vba Application.Caption property.
Another thought. I don't know if you can somehow use a Named Expression with Fields. You could create a Named Expression using the variable and possibly display that somewhere. I couldn't figure a way to do that with Fields though. If it can't be done, Bentley should add the capability of using Named Expressions with Text Fields.
In a pinch, you could put this on a function key: expand echo $(_USTN_PROJECTNAME);dialog -401
But you'd then have to look at the message details, and then close the Message Center. Not exactly ideal.
Then again, you can also put DIALOG ABOUTWORKSPACE on a function key.
Only thing I can think of would be to create a "menu" item with the project name/number and this would display at the top with the rest of the pulldown menus, showing which project you are in.....I was initially thinking, based off of the design file location, but you could open a file from another project while having another PCF loaded, so this would not work.
Timothy Hickman
CADD Manager | CADD Department
timothy.hickman@colliersengineering.com
Main: 877 627 3772|
1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691