<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/654098?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 12:17:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3a17293d-2ae1-4757-90b5-82a2c694a1e1</guid><dc:creator>Tim Hickman</dc:creator><description>&lt;p&gt;the fact that the MSLOCAL file needs to be included in your custom configuration file is the whole problem.&lt;/p&gt;
&lt;p&gt;If Bentley would fix/change this then this whole situation would not be needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/654017?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 07:17:33 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:82a3f1be-333d-4f47-b27c-dc8ad30519e6</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;Hello Marc, thanks for your input!&lt;/p&gt;
&lt;p&gt;I found a way to retrieve the path to the product/config/ folder (from registry!). This way, i can refer to the correct mslocal.cfg with my own .cfg file. I was just wondering, if there exists some kind of variable, that is available to me in my own .cfg, that references the directory of the application that is being called (for example MapAdvanced.exe directory etc.).&amp;nbsp;&lt;span&gt;All these paths are defined only after including mslocal.cfg. And I wanted them before the include.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I like this setup more over your ConfigurationSetup.cfg, because I can save my .cfg file whenever I want without modifying multiple files on host machine (just like back in the days of V8I, with possibility to attach our own UCF file). But to be honest, I&amp;acute;m glad you suggested this approach as well, as I didnt know about it before. Now i have another option available, so thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/653972?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 01:21:13 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6297c8a2-1733-42ad-b641-0aaece879bbf</guid><dc:creator>Tuan Le</dc:creator><description>&lt;p&gt;There&amp;#39;s some information in this blog post for UCF:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/other/old_site_member_blogs/peer_blogs/b/marc_thomass_blog/posts/connect-edition---configuration-tips-user-preferences-in-onedrive-or-other-locations"&gt;communities.bentley.com/.../connect-edition---configuration-tips-user-preferences-in-onedrive-or-other-locations&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/653876?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 11:16:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:21d5d93e-842f-47da-87a2-249d70e43d4f</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Hi Lubo,&lt;/p&gt;
&lt;p&gt;The file&amp;nbsp;where a custom configuration is best defined is&amp;nbsp;&amp;quot;C:\ProgramData\Bentley\&amp;lt;applicationName&amp;gt;\Configuration\ConfigurationSetup.cfg&amp;quot;&lt;/p&gt;
&lt;p&gt;You can also define additional statements in the General section of that file, for example:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;_USTN_WORKSPACENAME =&amp;nbsp;MyWorkSpace&lt;/em&gt;&lt;br /&gt;&lt;em&gt;%lock _USTN_WORKSPACENAME&lt;/em&gt;&lt;br /&gt;&lt;em&gt;_USTN_WORKSETNAME = MyWorkSet&lt;/em&gt;&lt;br /&gt;&lt;em&gt;%lock _USTN_WORKSETNAME&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Which would pre-set WorkSpace and WorkSet.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ConfigurationSetup.cfg is the recommended point at which to start configuration; we do not recommend modifying mslocal.cfg or any other system CFG files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will discuss your question with a colleague from the OpenCities product team.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/653585?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 12:43:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e551ae3c-95bb-46e2-9fd4-3baa0895157c</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;Hello, sorry for late response. I found quite a workaround, with macro USTN_WORKSPACEROOT and defining my own Workspaces/NoWorkSpace/NoWorkSet.cfg. It is working the way I want, but it is probably not the right way to do that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You might be right, including the mslocal.cfg might be the thing im missing.&lt;/p&gt;
&lt;p&gt;However, is it possible to use also some kind of generic way to include the proper mslocal.cfg ? In case of different applications (OpenCities Map Advances, PowerView, Ultimate...), they all have different folder structures and places where these mslocals are stored.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: I have tried it and it works, after i included mslocal (with fixed path). Thanks! The remaining subquestion remains though, to retrieve the path of exe that is executed, so i know where to look for mslocal no matter which application is being called.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit2: Basically the directories are defined AFTER mslocal.cfg is included, like the path where configuration files are stored&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/649850?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 13:47:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b373efc7-10f6-4011-91b3-6f5afd44ae4b</guid><dc:creator>Rod Wing</dc:creator><description>&lt;p&gt;I use the -wc switch quite often, with no problems. One thing to note is that when using that switch the mslocal.cfg is not automatically loaded. Your custom config file specified by the -wc switch will have to do a &lt;strong&gt;%include&lt;/strong&gt;&amp;nbsp;of the mslocal.cfg&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/648072?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 18:09:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b4c23eb3-fc2c-49b7-af9c-0650c0c2f81d</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1070775" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application/648048"]is there a way for me to check the progress of this bug issue? [/quote]
&lt;p&gt;It was explained many times :-)&lt;/p&gt;
&lt;p&gt;Create Service Ticket and ask the ticket to be linked with the defect number.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/648048?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 15:59:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f060437c-714f-475c-ab76-b59448d05c97</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;oh, thanks for checking that! is there a way for me to check the progress of this bug issue? whenever it gets some new information or gets fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/648035?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 15:18:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6ef9c73e-914f-4f2e-9408-5bbc9eae7433</guid><dc:creator>Tim Hickman</dc:creator><description>&lt;p&gt;well - just found out there is a defect filed for the &amp;quot;wc&amp;quot; command line switch.&lt;/p&gt;
&lt;p&gt;defect #729779&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/648021?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 14:33:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0a6ef914-6fa4-4ce8-9e7e-dfc9adbc1520</guid><dc:creator>Tim Hickman</dc:creator><description>&lt;p&gt;the -wc switch is what I meant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/647996?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 13:07:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1b395697-03d3-4007-b1ad-e0c1b414f485</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;do you mean using the command line switch -wc? I&amp;acute;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/647991?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 12:51:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cc05ca26-f195-48f1-b507-0e3a2a6a8034</guid><dc:creator>Tim Hickman</dc:creator><description>&lt;p&gt;why are you concentrating on the &amp;quot;user&amp;quot; part ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you could and still, can load &amp;quot;a configuration&amp;quot; file on startup from the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/647971?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 11:51:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fddbec54-31e9-41c2-a302-81588a406847</guid><dc:creator>Lubo B</dc:creator><description>&lt;p&gt;Hello Jan, thanks for your reply.&lt;/p&gt;
&lt;p&gt;Yes, I checked many discussions, I found some new interesting informations that I didn&amp;acute;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.&lt;/p&gt;
[quote userid="2473" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application/647970"]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.[/quote]
&lt;p&gt;I can explain. I want to achieve following&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I have an .ucf file where all my custom paths(for cells, dgn libs, dlls) and settings are saved.&lt;/li&gt;
&lt;li&gt;Now I want to start a Microstation session using my launcher that will use these paths at the startup(like it does when it uses the right ucf file), but I dont want to affect the global prefs folder (thats why I dont want to copy my .ucf file into the global prefs folder).&lt;/li&gt;
&lt;/ul&gt;
[quote userid="2473" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application/647970"]It can be also done by e.g. including always the same file to standard or another selected workspace level.[/quote]
&lt;p&gt;Can you please describe this approach more ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to load a custom UCF at startup of Microstation CE/OpenCities Map application.</title><link>https://communities.bentley.com/thread/647970?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 11:42:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0ae4aff1-b3a1-4ec9-a74d-d010fa1cb5d7</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Lubo,&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application"]Back in the days of V8I, there was an option to launch the Microstation with my own UCF file[/quote]
&lt;p&gt;The role of ucf file changed in CE.&lt;/p&gt;
&lt;p&gt;Did you &lt;a href="/search?q=connect%20ucf" rel="noopener noreferrer" target="_blank"&gt;search for similar discussions&lt;/a&gt;? It was discussed many times.&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application"]how did you guys solve the situation to launch a given application but with your own UCF file?[/quote]
&lt;p&gt;It was also discussed already. It&amp;#39;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).&lt;/p&gt;
[quote userid="1070775" url="~/products/administration/f/product-administration-forum/213453/how-to-load-a-custom-ucf-at-startup-of-microstation-ce-opencities-map-application"]Or is there a better and easier way to achieve loading selected UCF during the startup?[/quote]
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>