<?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 Re: Undo and modifications made in ImpliedSelectionChanged in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/undo-and-modifications-made-in-impliedselectionchanged/m-p/8743637#M22674</link>
    <description>&lt;P&gt;I worked it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ImpliedSelectionChanged was getting triggered on the Undo event before the command ended Undo.&lt;/P&gt;
&lt;P&gt;This also contained an UnHighlight event and was clearing items that needed to be unhighlighted.&lt;/P&gt;
&lt;P&gt;Seems like entities need to be Unhighlighted on the&amp;nbsp;&lt;SPAN&gt;CommandEnded UNDO and not ImpliedSelectionChanged &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Apr 2019 21:52:10 GMT</pubDate>
    <dc:creator>SRSDS</dc:creator>
    <dc:date>2019-04-20T21:52:10Z</dc:date>
    <item>
      <title>Undo and modifications made in ImpliedSelectionChanged</title>
      <link>https://forums.autodesk.com/t5/net-forum/undo-and-modifications-made-in-impliedselectionchanged/m-p/8743467#M22673</link>
      <description>&lt;P&gt;On&amp;nbsp;ImpliedSelectionChanged I am highlighting the selection (and associated objects) by changing temporarily modifying the entities colour and lineweight.&lt;/P&gt;
&lt;P&gt;On deselection I revert unhighlight them.&lt;/P&gt;
&lt;P&gt;The problem is that the UNDO command rolls back through these selection colour changes.&lt;/P&gt;
&lt;P&gt;I have added a routine to revert the colour in CommandEnded UNDO but it doesn't work and I'm scratching my head.&lt;/P&gt;
&lt;P&gt;Without posting code, is there an obvious flaw in what I am attempting to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was hoping there is some way to skip the undo of certain events within a command.&lt;/P&gt;
&lt;P&gt;db.DisableUndoRecording(True) sounded right doesn't seem to work either.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 17:50:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/undo-and-modifications-made-in-impliedselectionchanged/m-p/8743467#M22673</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2019-04-20T17:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Undo and modifications made in ImpliedSelectionChanged</title>
      <link>https://forums.autodesk.com/t5/net-forum/undo-and-modifications-made-in-impliedselectionchanged/m-p/8743637#M22674</link>
      <description>&lt;P&gt;I worked it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ImpliedSelectionChanged was getting triggered on the Undo event before the command ended Undo.&lt;/P&gt;
&lt;P&gt;This also contained an UnHighlight event and was clearing items that needed to be unhighlighted.&lt;/P&gt;
&lt;P&gt;Seems like entities need to be Unhighlighted on the&amp;nbsp;&lt;SPAN&gt;CommandEnded UNDO and not ImpliedSelectionChanged &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 21:52:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/undo-and-modifications-made-in-impliedselectionchanged/m-p/8743637#M22674</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2019-04-20T21:52:10Z</dc:date>
    </item>
  </channel>
</rss>

