<?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>Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/products/administration/f/product-administration-forum/212946/enable-disable-ribbon-buttons-using-named-expressions</link><description>Hi, 
 
 I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value. 
 
 When i searched in community, many suggestions was can be done through &amp;quot;Named Expressions&amp;quot;. 
 
 Please provide me an simple</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646453?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 22:00:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0c69a77c-d82f-4663-9f65-e6634aa015ea</guid><dc:creator>Bob Rayner</dc:creator><description>&lt;p&gt;Jan, Jon and Rod (others) are the best, aren&amp;#39;t they? Correct you for forum etiquette, yet you still get the help you need. Too bad Bentley doesn&amp;#39;t roll this way. I remember when they did.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646303?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 05:11:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:96bbc122-1ad2-4bcd-ad17-28605501e2ca</guid><dc:creator>Rajesh Varatharajan</dc:creator><description>&lt;p&gt;Thanks Rod,&lt;/p&gt;
&lt;p&gt;Will try this and revert back if i have any doubts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regrads,&lt;/p&gt;
&lt;p&gt;Rajesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646230?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 19:36:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fb3f78d2-4825-43f8-9465-ab80bc806276</guid><dc:creator>Rod Wing</dc:creator><description>&lt;p&gt;If you want an example of how this is done, download our freeware macros from here.&lt;br /&gt;&lt;a href="https://envisioncad.com/freeware/microstation-resources/"&gt;https://envisioncad.com/freeware/microstation-resources/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After following the install instructions you will have an EnvisionCAD_gui.dgnlib file that contains custom toolboxes, ribbons, and associated Named Expressions.&lt;/p&gt;
&lt;p&gt;If you open the dgnlib file and open the Named Expressions dialog you will see these custom assignments.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/4747.pastedimage1619119921104v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the Customize dialog if you open the associated toolbox button you will see how the Named Expression is utilized.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/2021.pastedimage1619120033089v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally, if you open the EnvisionCAD_Freeware_CONNECT.cfg file in Notepad you will see the variable assignments.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/4456.pastedimage1619120158805v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Toggling those variable values between 0 and 1 will turn off/on the display of the toolbox and ribbon buttons.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646209?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 17:17:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2098bdce-9a6e-4ce7-b8f2-918c15473dcc</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1097338" url="~/products/programming/microstation_programming/f/microstation-programming---forum/212946/enable-disable-ribbon-buttons-using-named-expressions"]&lt;p&gt;I need to enable /disable ribbon menu buttons based on a variable value. When i searched in community, many suggestions was can be done through &amp;quot;Named Expressions&amp;quot;.&lt;/p&gt;[/quote]
&lt;p&gt;Yours isn&amp;#39;t a programming question.&amp;nbsp; A better place to post it would be the &lt;a title="Be Communities: Administration Forum" href="/products/administration/f/product-administration-forum" rel="noopener noreferrer" target="_blank"&gt;Administration Forum&lt;/a&gt; or the &lt;a title="Be Communities: MicroStation Forum" href="/products/microstation/f/microstation-forum" rel="noopener noreferrer" target="_blank"&gt;MicroStation Forum&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a title="MicroStation Help: Named Expressions" href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4.html" rel="noopener noreferrer" target="_blank"&gt;Named Expressions&lt;/a&gt; are discussed in MicroStation Help.&amp;nbsp;&lt;/p&gt;
&lt;p class="p"&gt;You can use &lt;span class="search-term"&gt;named&lt;/span&gt; &lt;span class="search-term"&gt;expressions&lt;/span&gt; with the &lt;a class="xref" href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/GUID-800D2BB2-28B9-FE26-43EC-72BC32FA619B.html"&gt;Customize utility&lt;/a&gt; to:&lt;/p&gt;
&lt;ul class="ul" id="GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4__UL_5C349EF59DE547F68178795DD36823D9"&gt;
&lt;li class="li" id="GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4__LI_D71B7730DF5E44BAB71DC53406462A13"&gt;define conditions under which when a tool or task is shown or hidden.&lt;/li&gt;
&lt;li class="li" id="GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4__LI_35631197F79B4144B6F717D45F92D8DC"&gt;define conditions under which a menu or menu item is shown or hidden and enabled or disabled.&lt;/li&gt;
&lt;li class="li" id="GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4__LI_30862AA44F884BB792119A7674575C13"&gt;define conditions under which a menu item is marked.&lt;/li&gt;
&lt;li class="li" id="GUID-5E2B6198-4CBD-4D58-B60A-13E645B792F4__LI_3A65A11159664ECA8E904F626FC80690"&gt;define conditions under which a contextual menu item is shown or hidden and enabled or disabled.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646208?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 17:13:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e968b0f4-1e0a-4534-9877-1a0e6f7cc981</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="1097338" url="~/products/programming/microstation_programming/f/microstation-programming---forum/212946/enable-disable-ribbon-buttons-using-named-expressions/646128"]let me know where the best practices/ rules defined for this forum[/quote]
&lt;p&gt;It&amp;#39;s the third or fourth post at the top of the Forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646135?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:56:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:645714dd-fc7a-4297-ab40-2de7a64f4b3e</guid><dc:creator>Rajesh Varatharajan</dc:creator><description>&lt;p&gt;Thanks Jan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Will check&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646133?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:51:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6c2b4bb8-44e0-493a-9cd6-4f8249d5e7e8</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="2473" url="~/products/programming/microstation_programming/f/microstation-programming---forum/212946/enable-disable-ribbon-buttons-using-named-expressions/646129"]If I remember right, technically is enable/disable behvior defined as EnableExpression in command specification.[/quote]
&lt;p&gt;To understand how ribbon is defined and how the definition is transformed into what is displayed in MicroStation GUI, to study &lt;em&gt;Ribbon&lt;/em&gt; chapter in MicroStation API documentation, is recommended.&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: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646131?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:44:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e3351aff-df01-4404-a344-4b5db22e2a6c</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1097338" url="~/products/programming/microstation_programming/f/microstation-programming---forum/212946/enable-disable-ribbon-buttons-using-named-expressions/646128"]Kindly let me know where the best practices/ rules defined for this forum.[/quote]
&lt;p&gt;They are pinned to be visible for everybody:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/273/7416.best_2D00_practices.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Plus, there are also more general &lt;a href="/help/w/be_communities_help/4413/communities-forums-best-practices-and-tips" rel="noopener noreferrer" target="_blank"&gt;best practices&lt;/a&gt; available, defined for the whole web, covering more aspects.&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: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646129?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:41:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:738897ae-21df-4574-b1ee-9e848417d85f</guid><dc:creator>Jan Šlegr</dc:creator><description>[quote userid="1097338" url="~/products/programming/microstation_programming/f/microstation-programming---forum/212946/enable-disable-ribbon-buttons-using-named-expressions"]Please provide me an simple example using Named Expressions to achieve this.&amp;nbsp;[/quote]
&lt;p&gt;I think the simplest way is to try to define own ribbon item (e.g. button), check available expressions in &lt;em&gt;EnableExpression&lt;/em&gt; list, and to study how these expressions are defined in &lt;em&gt;Named Expressions&lt;/em&gt; dialog.&lt;/p&gt;
&lt;p&gt;If I remember right, technically is enable/disable behvior defined as EnableExpression in command specification.&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: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646128?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:37:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:606800e7-f699-4c40-b6e9-1ce7b7c1bddd</guid><dc:creator>Rajesh Varatharajan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kindly let me know where the best practices/ rules defined for this forum.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajesh Varatharajan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646126?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:33:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:39686a72-1994-4f52-9f6d-7091135be47f</guid><dc:creator>Rajesh Varatharajan</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;Just experimenting Named Expressions using&amp;nbsp;&lt;a title="Named Expressions" href="https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/NamedExpressions.html"&gt;https://docs.bentley.com/LiveContent/web/MicroStation%20Help-v17/en/NamedExpressions.html&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646124?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:29:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fc5206c9-0807-4a19-8214-d4cf666a958a</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;BTW Why you pollute the question by so many useless tags, not relevant to discussed topics, but at the same time do not follow the best practices, defined for this forum?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable Ribbon Buttons using Named Expressions?</title><link>https://communities.bentley.com/thread/646123?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 08:27:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:77ff71fe-d569-487d-a9d3-66c33c56b5a9</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Rajesh,&lt;/p&gt;
&lt;p&gt;what is your current knowledge of Named Expression? Did you learn them from MicroStation documentation?&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>