<?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>Configuration file operators</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/200874/configuration-file-operators</link><description>I&amp;#39;m working on modifying some commands in our configuration, and had a couple questions. 
 I&amp;#39;ve looked online to better understand what the &amp;quot;$&amp;quot; does within these files. For example: 
 MS_CONFIG_DIR: $(MS_CONFIG_DRIVE)Microstation/Config/ 
 I understand</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Configuration file operators</title><link>https://communities.bentley.com/thread/600739?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 17:01:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:63f9d8e5-24a5-4bc7-ae33-7ca6f1d32a5d</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Excellent point Rod!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration file operators</title><link>https://communities.bentley.com/thread/600486?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 21:30:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a1d484bf-16a6-4da5-9a93-440a8577639b</guid><dc:creator>Rod Wing</dc:creator><description>&lt;p&gt;Adding to what everyone else has also mentioned I would use a different variable name than &lt;strong&gt;&lt;em&gt;MS_CONFIG_DRIVE&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is a custom variable that you have defined, not one that MicroStation recognizes natively. To avoid confusion as to which variables are native MicroStation variables and which variables are your custom variables do not use the&lt;strong&gt; MS&lt;/strong&gt;&amp;nbsp;nor &lt;strong&gt;USTN&lt;/strong&gt; prefix for your variable names.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration file operators</title><link>https://communities.bentley.com/thread/600461?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 16:55:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7aceebfb-9bdf-4cbd-9895-f554390ca836</guid><dc:creator>Marc Thomas</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;The sequence is to check if the network is present, then fail over to the local:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;%if exists (Y:/)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MS_CONFIG_DRIVE = Y:/&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %else&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MS_CONFIG_DRIVE = C:/Program Files (x86)/Bentley/MicroStation V8i (SELECTseries)/&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;%endif&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The $ operator expands the contents of the brackets in the two cases Jan illustrates, it does this only in the context of brackets.&lt;/p&gt;
&lt;p&gt;You might find some of my blogs helpful reading if you are left picking up after your former colleague:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/search?q=CONNECT%20Edition%20-%20Configuration%20Tips&amp;amp;group=9#serptag=connect%20edition%20-%20configuration%20tips%3A" rel="noopener noreferrer" target="_blank"&gt;CONNECT Edition - Configuration Tips&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/search?q=setting&amp;amp;group=9#serptag=site%20standards" rel="noopener noreferrer" target="_blank"&gt;Site Standards&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/search?q=%22Supporting%20Techniques%20-%22&amp;amp;group=9#serptag=supporting%20techniques" rel="noopener noreferrer" target="_blank"&gt;Supporting Techniques&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that CONNECT Edition configuration is a bit different to V8i, but ultimately easier to work with.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration file operators</title><link>https://communities.bentley.com/thread/600215?ContentTypeID=1</link><pubDate>Sun, 26 Jul 2020 07:23:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:25709c38-13d9-48f9-b97a-16ab84e15240</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;at first, two notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Please use &lt;em&gt;Insert &amp;gt; Insert&lt;/em&gt; code tool to include &amp;quot;code snippets&amp;quot; (including configuration files, even one row of text) to you text, so they are not displayed as a plain text.&lt;/li&gt;
&lt;li&gt;Do not ask more questions in one post to ensure it&amp;#39;s clear what topic is discussed.&lt;/li&gt;
&lt;/ul&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]I&amp;#39;ve looked online to better understand[/quote]
&lt;p&gt;Did you read MicroStation documentation? &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v16/en/GUID-F3850D56-A1B9-56D9-C430-4315A94AB8AF.html" rel="noopener noreferrer" target="_blank"&gt;Configuration concepts&lt;/a&gt;, including &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v16/en/GUID-EABCA351-6E56-D0B2-A2F2-50169763EF54.html" rel="noopener noreferrer" target="_blank"&gt;configuration variables&lt;/a&gt;, are described there pretty well in my opinion.&lt;/p&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]what the &amp;quot;$&amp;quot; does within these files.[/quote]
&lt;p&gt;The $ letter does nothing! You have always to think in a context of complete syntax.&lt;/p&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]Is it telling microstation to look for a previously established variable, named after the $ and between the two parenthesis?[/quote]
&lt;p&gt;There are two variants used with a substantial difference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$(&amp;lt;CfgVarName&amp;gt;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;evaluates the variable value every time when the definition is used, whereas&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;${&amp;lt;CfgVarName&amp;gt;}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;evaluates the value once only (when the configuration file is processed).&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v16/en/GUID-C59A1F56-F723-853A-0469-83F5859385EC.html" rel="noopener noreferrer" target="_blank"&gt;the syntax definition&lt;/a&gt; in MicroStation documentation for more details.&lt;/p&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]I&amp;#39;m also looking to understand the difference between the &amp;quot;:&amp;quot; and &amp;quot;=&amp;quot; within the config documents.[/quote]
&lt;p&gt;Again, &lt;a href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v16/en/GUID-1DB07761-231A-41E5-86D0-BFD841C78F18.html" rel="noopener noreferrer" target="_blank"&gt;it&amp;#39;s well described&lt;/a&gt; in MicroStation documentation, so I think it&amp;#39;s not necessary to repeat the description here.&lt;/p&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]Then first example worked correctly, but the second one did not. I would appreciate any advice.[/quote]
&lt;p&gt;Without knowing context (which here means to see &lt;a href="/products/microstation/m/microstation_gallery/273829" rel="noopener noreferrer" target="_blank"&gt;the full debug log file&lt;/a&gt;), it&amp;#39;s hard to say.&lt;/p&gt;
&lt;p&gt;But I guess, because &amp;quot;:&amp;quot; is a condition assignment, the variable was defined already, so no new value was assigned.&lt;/p&gt;
[quote userid="1014674" url="~/products/administration/f/product-administration-forum/200874/configuration-file-operators"]I am working to better understand how this all fits together.[/quote]
&lt;p&gt;At first, study MicroStation documentation. Without understanding what is written there, &amp;quot;to try something&amp;quot; is just a time wasting effort leading to confusion only.&lt;/p&gt;
&lt;p&gt;With 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>