<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CommandEnded doesn't fire after Proprerty modified in Proprieties window in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783069#M51043</link>
    <description>&lt;P&gt;I'm a beginer in programming Autocad and my english may not be so good.&lt;/P&gt;&lt;P&gt;I'm trying to modify a table after user modifies a cell of that table. So i'm using CommandEnded event to do so.&lt;/P&gt;&lt;P&gt;The program works fine until user change table cell content via Proprieties Window. That because CommandEnded doesnt fire in that case.&lt;/P&gt;&lt;P&gt;I cannot use Table object's events because i have to modify the Table object itself during that notification (eWasNotifying error).&lt;/P&gt;&lt;P&gt;There is a trick to manage this problem?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2013 10:41:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-18T10:41:57Z</dc:date>
    <item>
      <title>CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783069#M51043</link>
      <description>&lt;P&gt;I'm a beginer in programming Autocad and my english may not be so good.&lt;/P&gt;&lt;P&gt;I'm trying to modify a table after user modifies a cell of that table. So i'm using CommandEnded event to do so.&lt;/P&gt;&lt;P&gt;The program works fine until user change table cell content via Proprieties Window. That because CommandEnded doesnt fire in that case.&lt;/P&gt;&lt;P&gt;I cannot use Table object's events because i have to modify the Table object itself during that notification (eWasNotifying error).&lt;/P&gt;&lt;P&gt;There is a trick to manage this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783069#M51043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-18T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783101#M51044</link>
      <description>&lt;H3 class="entry-header"&gt;&lt;STRONG&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/08/how-to-know-if-an-entitys-properties-are-modified-by-the-opm.html" target="_self"&gt;How to know if an entity's properties are modified by the OPM?&lt;/A&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;But that possible with ObjectARX and not with AutoCAD .NET API:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://forums.autodesk.com/t5/NET/Can-t-find-ModelessOperationWill-Start-Event-in-Dot-net/m-p/3444281" target="_self"&gt;Can't find ModelessOperationWill Start Event in .NET&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;H1&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:11:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783101#M51044</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-18T12:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783164#M51045</link>
      <description>&lt;P&gt;You may want to see this post for more&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=43757.msg491198#msg491198"&gt;http://www.theswamp.org/index.php?topic=43757.msg491198#msg491198&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 13:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783164#M51045</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2013-02-18T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783275#M51046</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/523211"&gt;@Hallex&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You may want to see this post for more&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.theswamp.org/index.php?topic=43757.msg491198#msg491198" target="_blank"&gt;http://www.theswamp.org/index.php?topic=43757.msg491198#msg491198&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;Sorry, but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the link above does not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the author&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to solve his problem&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;The reason is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that the event&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;CommanEnded&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;does not occur when&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;editing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;primitives&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;through&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the Properties panel.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:26:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783275#M51046</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-18T15:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783334#M51047</link>
      <description>&lt;P&gt;Thanks Alexander.&lt;/P&gt;&lt;P&gt;At the first look the solution looks a little complicated for me. At least I know that is about reacting to OPM events. For now i want to keep my code simple, so i will not complicate responding to OPM events. After i will finish the project, i will consider to upgrade my code with OPM events. Until then i will instruct users of my plugin to not use Proprieties Window to change the table.&lt;/P&gt;&lt;P&gt;I was hoping to be more simple (like an allready exposed .NET event) because i'm learning best practices to handle .NET events. Do you know a resource to learn more about .NET events or best practices?&lt;/P&gt;&lt;P&gt;Sory for my bad english, and thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783334#M51047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-18T16:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783732#M51048</link>
      <description>&lt;P&gt;Alex - The controls on the Ribbon do not filre the ModelessOperationWillStart/Ended() notifications either, so that entire approach is flawed to begin with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ModelessOperationWillStart/Ended() notifications are effectively-obsolete, and the fact that they're not exposed to managed code isn't a major issue, because you can just as easily use the &lt;STRONG&gt;DocumentLockModeWillChange&lt;/STRONG&gt; event of the DocumentCollection to do effectively the same thing (when the document is unlocked, that corresponds to the ModelessOperationEnded() notification).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with using the ModelessOperationEnded() notification to make &lt;EM&gt;&lt;STRONG&gt;additional&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;changes, is that those additional changes are not encapsulated within the same UNDO groujp/transaction as the changes that triggered the notification, and to the end user, all of the changes are part of a single, logical operation that should be undo-able as a group. Unfortunately, changes made in reaction to changes that trigger a ModelessOperationEnded() notification, will not be undone along with the original changes that triggered the notification.&amp;nbsp;&lt;SPAN&gt;So, if the user issues UNDO/1 after you've made additional changes in response to ModelessOperationEnded(), only those additional changes will be undone, but not the changes that triggered them, and that is a problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best possible way to deal with problems like this, is to use an ObjectOverrule, provided it is &lt;EM&gt;constrained&lt;/EM&gt; using some kind of Filter (ObjectId filter, XData filter or XDictionary filter). Unlike the ObjectModified event of the Database, within the Close() override of the ObjectOverrule, the notifying object that is about to be closed &lt;EM&gt;&lt;STRONG&gt;can be modified&lt;/STRONG&gt;&lt;/EM&gt;, and more-importantly, any additional changes made at that point will be undone along with all other changes made prior to that, by whatever operation made them. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 06:36:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783732#M51048</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-19T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783735#M51049</link>
      <description>&lt;P&gt;See my reply to Alex regarding this issue. The entire approach you want to take has some problems.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Secondly, you really don't want to find yourself in the position where you find it necessary to tell users they can't use certain tools, like the Properties palette or the ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 07:10:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783735#M51049</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-19T07:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: CommandEnded doesn't fire after Proprerty modified in Proprieties window</title>
      <link>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783763#M51050</link>
      <description>&lt;P&gt;Tony! &lt;SPAN&gt;&lt;SPAN class="hps"&gt;Thank you for the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;excellent explanation&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;What a pity that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you so&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;long was not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;on the Autodesk forum&lt;/SPAN&gt;&lt;/SPAN&gt; ...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 08:20:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/commandended-doesn-t-fire-after-proprerty-modified-in/m-p/3783763#M51050</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-19T08:20:39Z</dc:date>
    </item>
  </channel>
</rss>

