When I start MicroStation (CE Upd.13) the recent files will show in the Work Page. In the Work Page there's also a "Browse" button to find another file. When I hit the "Browse" button it will open in the recent used folder (that's controlled and stored by the user preference file).
I some cases I have placed a shortcut to start MicroStation in a specific folder and I would like the "Browse" button to look in that specific folder (using fx $(_WORKDIR)). So I'm seeking a possibility to control in which folder the Browse button will open ...fx a variabel similar to the one when browsing for references: MS_REF_DEFAULTATTACHDIRECTORY. ...it could be MS_DGN_BROWSE_DEFAULTDIRECTORY :-)
In other words: I want to be able to ignore the recent folder stored in the user preference file and use a variable to control the "Browse folder". I know the presences of MS_DEF and _USTN_WORKSETDGNS but as far as I can see they only "works" the first time a new WorkSet is chosen (afterwards the upf takes control).
The reason why I'm askinng is that I want to minimize the number of WorkSets or upf files.
I've always used MS_DEF. Currently for CONNECT I have it set in my workset config. We have a separate workset for each project so I can have it open to the project specific folder. You could set it in the Client config and have it point to one specific client folder rather than project specific folders.
I'm sure there is another way to handle it, but I tend to stick with what works for me and is proven.
Microstation CONNECT 10.17.00.209
ORD CONNECT 2021 R1 10.10.1.3
Microstation v8i SS 10 08.11.09.919
Power InRoads v8i 08.11.09.615
Hi mwlongThanks for your reply - unfortunately I can't see that MS_DEF helps controlling the folder (path) in which the Browse button will open (unless it's the first time you open a new WorkSet).
IMHO I know a lot about the configuration and the different levels and order in which the variables are loaded (and I don't edit the system cfg's).I have tried to define _USTN_WORKSETDGNS at different levels but it makes no difference. It's still the history of the .upf file that determines the last used folder etc. (unless I create a new WorkSet and opens it for the first time).Some day I'll maybe try with a brand new configuration (from scratch) and see if this works different ...or I'll wait until Bentley moves the configuration to SQLite, maybe next year!
Thanks again for your interest and suggestions.
Looking through other config variables because I seem to remember a variable that was set to default to the last used folder. I can't recall if there is one and what it is. I just found another one tied to _USTN_WORKSETDGNS. Do you have _USTN_WORKSETDGNSDIRNAME set?
_USTN_WORKSETDGNSDIRNAME - Base directory name for design files of WorkSet. At the time of creating new WorkSet, this name is appended to the WorkSet root directory path.
mwlong said:I seem to remember a variable that was set to default to the last used folder.
That sounds very interesting. Please "dig in your memory" and if you recalls that variable, please let me know ._USTN_WORKSETDGNSDIRNAME is set, and is set to the default value: "dgn" but it is only a directory name ...so I doesn't think this is it.
I also just tried to disconnect all my configuration so I'm running with a clean default setup (out of the box) ... it doesn't change anything: it's still the .upf history that decides which folder gets opened. So it confirms that you must have defined a special variable that forces MicroStation to ignore the .upf history.
THe more i look into this, I believe MS_DEF is the key variable. Not sure why it is not working for you. Maybe run a debug and see if you can pin down what is happening. You can submit a service request and have a Bentley Tech look at it.
I've tried to run a debug and "investigate" what's happening - but everything looks nice and MS_DEF = $ (_USTN_WORKSETDGNS).I'll try to submit a service request ...my "feelings" tells me that it requires a new variable that overrules the upf history.
Thanks again for your thoughts and suggestions.
Best regards Anders
As far as I can see we would need to make changes. In V8i folder paths listed in the PCF under MS_DEF would be added to the Folder History pop-downs in addition the the 10 entry personal MRU list.
This is still the case for file dialogs in CONNECT Edition that currently continue to use older dialog designs with these file/folder history drop-down menus at the top right. Adding MS_DEF path definitions to the WorkSet.cfg will include them in the MRU list. The new dialogs with the file/folder history drop-down menus above the filename field do not do this.
If you would find this useful please file a service request mentioning Enhancement 1093851.
Answer Verified By: Anders W
Thankyou very much for your reply on this subject. It confirms me that this isn't possible in the current "state" of MicroStation CONNECT. In the meantime I have managed to persuade my client to start MicroStation in another way (adding the WorkSpaces and WorkSets in the HKEY_CLASSES_ROOT\Bentley MicroStation Design\Shell.. Reg.key). Therefore they just needs to double click at the dgn file when they are running their default WorkSpaces/WorkSets.Therefore I wont file a service request ...but I'm happy to hear that you do have plans for "renewing" the old dialogs and the corresponding configuration variables :-)
One thing that I failed to mention is that we use a workspace switch in our Microstation shortcut. When I right-click on my CONNECT icon this is what the target looks like
"C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\microstation.exe" -wr\\engdat1\COMMON2\MSV8i_support\Workspace\standards\
This path is where we have a workspace stored for some legacy projects that we are finishing the drafting tasks using CONNECT. Maybe something like this will solve your issue?