<?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 track undo event</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/bdn-vba/125869/how-to-track-undo-event</link><description>In Microstation-v8, when the user press Ctrl+Z. the undo event take place. Here I want to check and restrict the event based on a particular scenario. How to achive this by using MVBA (or by using mdlwrapper class in VBA).</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to track undo event</title><link>https://communities.bentley.com/thread/383125?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2016 07:36:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:08ca983d-4520-4ad5-98ba-33377d5149f7</guid><dc:creator>Jan Šlegr</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have not V8 2004 Edition installed (because it&amp;#39;s not supported for quite long time), so I tried it on V8i where customization works different way. But anyway, I don&amp;#39;t remember any customization API in VBA.&lt;br /&gt;
&lt;br /&gt;
With regards,&lt;br /&gt;
&lt;br /&gt;
  Jan&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to track undo event</title><link>https://communities.bentley.com/thread/383124?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2016 07:26:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c16624ea-82c9-4090-b4d8-cde9eab489f2</guid><dc:creator>Dharma Rajan</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Jan Slegr&amp;quot;]&lt;/p&gt;
&lt;p&gt;In my opinion it&amp;#39;s hardcoded inside MicroStation and cannot be change in any way.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;I have noticed an option to modify menu item using inbuilt-wizard (Tools -&amp;gt; Tool Boxes -&amp;gt; Customize -&amp;gt; Menu Bar -&amp;gt; Modify). Is this same can be accomplish by using VBA. Screenshot is attached for your reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/53220/Undo.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-discussions-components-files/53220/Undo.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to track undo event</title><link>https://communities.bentley.com/thread/383082?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 17:45:10 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a6d70a33-c0cb-4833-9ba8-ebc780b72131</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;[quote user=&amp;quot;Dharma Rajan&amp;quot;]Is it possible to replace the shortcut key for Undo action from Ctrl+Z to another key by using VBA?[/quote]&lt;/p&gt;
&lt;p&gt;In my opinion it&amp;#39;s hardcoded inside MicroStation and cannot be change in any way.&lt;/p&gt;
&lt;p&gt;I guess the only proper way how to monitor and control design file changes is to use native API and to use a proper API callback.&lt;/p&gt;
&lt;p&gt;It seems you want / need to use VBA for task that this environment was not designed. For any tight integration with MicroStation, C and C++ native code is required.&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: How to track undo event</title><link>https://communities.bentley.com/thread/383033?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 13:25:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:132408a6-d1fd-46d3-a644-337437ae77db</guid><dc:creator>Dharma Rajan</dc:creator><description>Is it possible to replace the shortcut key for Undo action from Ctrl+Z to another key by using VBA?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to track undo event</title><link>https://communities.bentley.com/thread/382892?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 14:05:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b68c5576-28db-4e55-b9ac-2a433f06127d</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Dharma Rajan,&lt;/p&gt;
&lt;p&gt;to monitor Undo / Redo events, you can use ICHangeTrackEvents interface (see more details in MicroStation VBA help). But in my opinion (just my guess, because I have not used in VBA) there are some restrictions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It&amp;#39;s not possible to track element change that is in memory (e.g. Ctrl+Z used in a middle of Place SmartLine tool).&lt;/li&gt;
&lt;li&gt;The interface is &amp;quot;read only&amp;quot; in a meaning it&amp;#39;s &amp;quot;informative&amp;quot;, so you cannot influence the process.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Based on that I think you cannot restrick Undo using VBA and mdl wrappers will not help there.&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>