Hello everyone, I have a question regarding loading custom UCF file during the startup of Microstation CE application(and also OpenCitiesMap/Advanced, OpenCities Map Ultimate).
Back in the days of V8I, there was an option to launch the Microstation with my own UCF file using the command line switch ws_USTN_USERCFG="myFile.cfg"... I made some investigation on this approach in this CE world and found out following :
My question is, how did you guys solve the situation to launch a given application but with your own UCF file? I mean, I was thinking about copying my files into the prefs folder and name them Personal, but that means my configuration will replace everything and maybe sometimes I want to use it without it. Then another problem is that every product has its own folder path, so basically I have to copy my UCF into the correct folder depending on the installed version (and then I also though about what would happen if the directory path changes with some new updates[right now its in Microstation\10.0.0\prefs] - another trouble!).
Or is there a better and easier way to achieve loading selected UCF during the startup?
Thanks for any suggestions.
Hi Lubo,
Lubo B said:Back in the days of V8I, there was an option to launch the Microstation with my own UCF file
The role of ucf file changed in CE.
Did you search for similar discussions? It was discussed many times.
Lubo B said:how did you guys solve the situation to launch a given application but with your own UCF file?
It was also discussed already. It's not possible to change ucf name or location. You have to use another workspace level (workspace, workset) or maybe conditional mechanism (define custom variable and analyzed it in some workspace configuration file).
Lubo B said:Or is there a better and easier way to achieve loading selected UCF during the startup?
A question is what do you want to achieve. If you want to apply the same set of settings, I do not see the ucf modification as mandatory. It can be also done by e.g. including always the same file to standard or another selected workspace level.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hello Jan, thanks for your reply.
Yes, I checked many discussions, I found some new interesting informations that I didn´t know about before, but in conclusion, I found out that its not possible the same way as it was in V8I. At some point I was about to look for unlocking the _USTN_USERCFG value, but thats not the solution I want.
Jan Ĺ legr said:A question is what do you want to achieve. If you want to apply the same set of settings, I do not see the ucf modification as mandatory. It can be also done by e.g. including always the same file to standard or another selected workspace level.
I can explain. I want to achieve following :
Jan Ĺ legr said:It can be also done by e.g. including always the same file to standard or another selected workspace level.
Can you please describe this approach more ?
Thanks
why are you concentrating on the "user" part ?
you could and still, can load "a configuration" file on startup from the command line.
Timothy Hickman
CADD Manager | CADD Department
timothy.hickman@colliersengineering.com
Main: 877 627 3772|
1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691
do you mean using the command line switch -wc? I´ve tried that and it resulted in error, like mine cfg file replaced the core cfg that is being used during the loading. or you mean by copying the content of the original .cfg(debug shows that the first .cfg being processed is mslocal.cfg) and add my own statements?
the -wc switch is what I meant.