<?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>Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/94278/regular-expression-test-file-exist-then-drive-gui</link><description>Here&amp;#39;s a question that is actually two questions combined. Before you tell me to post &amp;#39;m seperately, hear me out first please. Is it possible to have Regular Expressions test for the existence of a certain file? Is it possible to have a tool change it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/thread/273784?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2014 14:01:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:65e76752-260a-46da-a99a-22f5127e13ad</guid><dc:creator>Bill Brown</dc:creator><description>&lt;p&gt;You could always use a program like IcoFX to extract the Icons from the two versions of Word (I believe that they are different), then rename and use them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/thread/273644?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2014 07:23:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:06f3cd3d-9847-47da-addd-e8bba66f25c2</guid><dc:creator>Ivo Blaauw</dc:creator><description>&lt;p&gt;Haha,&lt;/p&gt;
&lt;p&gt;I promis, I will not get carried away here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/thread/273563?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2014 12:54:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9682314e-872c-479a-9866-59128cbb9cd3</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Oh, please, don&amp;#39;t implement this ! :-)&lt;/p&gt;
&lt;p&gt;A customer is calling:&lt;/p&gt;
&lt;p&gt;- How can I help you?&lt;/p&gt;
&lt;p&gt;- I need to do &amp;lt;add whatever&amp;gt;.&lt;/p&gt;
&lt;p&gt;- Ok, find an icon, it looks like a cat.&lt;/p&gt;
&lt;p&gt;- Sorry, I am not able to find it, there is nothing like this on my screen.&lt;/p&gt;
&lt;p&gt;- Hmm, I forgot it can also looks like a dog.&lt;/p&gt;
&lt;p&gt;... silence ...&lt;/p&gt;
&lt;p&gt;- No, not able to find it. But, wait, there is icon looking like a mice!&lt;/p&gt;
&lt;p&gt;- Great, actually it&amp;#39;s not the mice, it&amp;#39;s an icon of a mole. But it&amp;#39;s the right tool you have to use it, this third icon state was added in the last version.&lt;/p&gt;
&lt;p&gt;- So lets continue, you have to do this...&lt;/p&gt;
&lt;p&gt;Support will be even bigger adventure ... :-)&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><item><title>RE: Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/thread/273561?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2014 12:45:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:edb75b59-2b4f-4035-a166-2f17f1e19cc1</guid><dc:creator>Ivo Blaauw</dc:creator><description>&lt;p&gt;Jan,&lt;/p&gt;
&lt;p&gt;Thanks a lot. You described what I was hoping to achieve. Doesn&amp;#39;t really matter how to get there, just as long as I get there. &lt;/p&gt;
&lt;p&gt;To be honest; I pretty much expected the icons to be firmly fixed like a beached whale. On the other hand, maybe this will be a new feature in the future: icons and tools that behave and appear differently in a variety of situations.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regular Expression test file exist, then drive GUI</title><link>https://communities.bentley.com/thread/273428?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2014 11:12:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8c7cca23-da49-49a9-9a7b-8b217f6fec0f</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Ivo,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I think the answer to both your questions is &amp;quot;No&amp;quot;, but I think there is a way how to implement your request:&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;Ivo Blaauw&amp;quot;]Is it possible to have Regular Expressions test for the existence of a certain file? [/quote]&lt;/p&gt;
&lt;p&gt;No, it&amp;#39;s not possible, because there is not such symbol set available (at least I didn&amp;#39;t find such). But it can be added, because it&amp;#39;s possible to develop and add &lt;a target="_blank" href="http://www.labtech.cz/xwiki/bin/view/Projects/Symbol+Library"&gt;own symbol providers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;Ivo Blaauw&amp;quot;]Is it possible to have a tool change it&amp;#39;s icon, depending on a certain situation?[/quote]&lt;/p&gt;
&lt;p&gt;Not, such feature is not supported, the tool icon is static setting and cannot be modified by Named Expressions.&lt;/p&gt;
&lt;h3&gt;So how to implement such icon?&lt;/h3&gt;
&lt;h4&gt;&lt;strong&gt;Step 1: Configuration variable definition&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;One way is to develop own symbol provider, but it&amp;#39;s probably not the best choice for you ;-) Fortunately we have configuration files. You can use conditionl variable definition, the syntax will be somthing like&lt;/p&gt;
&lt;p&gt;&lt;code&gt;_OFFICE2010PATH = C:/Program Files (x86)/Microsoft Office/Office14/&lt;br /&gt;_OFFICE2013PATH = C:/Program Files (x86)/Micr...&lt;br /&gt;&lt;br /&gt;%if exists ($(_OFFICE2010PATH)WINWORD.EXE)&lt;br /&gt;WORD2010AVAILABLE = 1&lt;br /&gt;%endif&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Extend it to all required programs and put it into your site or project configuration file.&lt;/p&gt;
&lt;h4&gt;Step 2: GUI customization&lt;/h4&gt;
&lt;p&gt;It&amp;#39;s not possible to change icons of a particular tool dynamically, but your can create separate tools for every Word or other application version and to apply own Show/Hide test for every tool, e.g.:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ConfigVar.IsConfigVarDefined(&amp;quot;WORD2010AVAILABLE&amp;quot;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Together, when task tools will be initialized and evaluated, because only WORD2010AVAILABLE will be defined (and not WORD2013AVAILABLE), only this tool will be displayed ... and if I understand you right, it&amp;#39;s what you would like to have ;-)&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>