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.
Best regards
Anders
Thanks
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.
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
ProjectWise 10.0.3.453
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.
Best regardsAnders
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