<?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 Missing regen after editing a block definition, or after its undo in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486532#M5989</link>
    <description>&lt;P&gt;I have&amp;nbsp;&lt;SPAN&gt;a command&amp;nbsp;&lt;/SPAN&gt;that changes the definition of a block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After executing the command, the already existing instance of the block doesn't show the update until a &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt; is executed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have added &lt;FONT face="courier new,courier"&gt;Editor.Regen()&lt;/FONT&gt; at the end of the function, right after it has finished updating the block definition, and now I see the updated block.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that if, after executing the command, I undo, the block definition goes back to its previous condition, but the existing instance doesn't show the update until a manual &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt;. Again, the undo doesn't know that a &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt;&amp;nbsp;is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The command already has the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;CommandFlags.&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;Redraw&lt;/FONT&gt;&amp;nbsp;flag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is adding the &lt;FONT face="courier new,courier"&gt;Editor.Regen()&lt;/FONT&gt;&amp;nbsp;the correct solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If yes, how do I make sure the block is regenerated after undo?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 17:52:17 GMT</pubDate>
    <dc:creator>stefanome</dc:creator>
    <dc:date>2024-01-09T17:52:17Z</dc:date>
    <item>
      <title>Missing regen after editing a block definition, or after its undo</title>
      <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486532#M5989</link>
      <description>&lt;P&gt;I have&amp;nbsp;&lt;SPAN&gt;a command&amp;nbsp;&lt;/SPAN&gt;that changes the definition of a block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After executing the command, the already existing instance of the block doesn't show the update until a &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt; is executed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have added &lt;FONT face="courier new,courier"&gt;Editor.Regen()&lt;/FONT&gt; at the end of the function, right after it has finished updating the block definition, and now I see the updated block.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that if, after executing the command, I undo, the block definition goes back to its previous condition, but the existing instance doesn't show the update until a manual &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt;. Again, the undo doesn't know that a &lt;FONT face="courier new,courier"&gt;REGEN&lt;/FONT&gt;&amp;nbsp;is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The command already has the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;CommandFlags.&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;Redraw&lt;/FONT&gt;&amp;nbsp;flag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is adding the &lt;FONT face="courier new,courier"&gt;Editor.Regen()&lt;/FONT&gt;&amp;nbsp;the correct solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If yes, how do I make sure the block is regenerated after undo?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 17:52:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486532#M5989</guid>
      <dc:creator>stefanome</dc:creator>
      <dc:date>2024-01-09T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Missing regen after editing a block definition, or after its undo</title>
      <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486556#M5990</link>
      <description>&lt;P&gt;Autodesk.AutoCAD.Internal.CoreUtils.SetUndoRequiresRegen(Darabase db)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486556#M5990</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-01-09T18:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Missing regen after editing a block definition, or after its undo</title>
      <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486588#M5991</link>
      <description>&lt;P&gt;Thank you, that's exactly what I need!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a little scary that searching for it in the whole autodesk.com doesn't find any matches:&amp;nbsp;&lt;A href="https://www.google.com/search?q=site%3Aautodesk.com+SetUndoRequiresRegen" target="_blank"&gt;https://www.google.com/search?q=site%3Aautodesk.com+SetUndoRequiresRegen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where and how did you find this function?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486588#M5991</guid>
      <dc:creator>stefanome</dc:creator>
      <dc:date>2024-01-09T18:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Missing regen after editing a block definition, or after its undo</title>
      <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486606#M5992</link>
      <description>&lt;P&gt;It is an undocumented API that was intended for internal use only. The primary means of discovering this kind of stuff is by using a decompiler/disassembler like IlSpy&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486606#M5992</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-01-09T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing regen after editing a block definition, or after its undo</title>
      <link>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486620#M5993</link>
      <description>&lt;P&gt;I'm not decompiler ready yet!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the time being I'm happy that you gave me the correct solution.&lt;BR /&gt;&lt;BR /&gt;And I'm happy that I wasn't missing some obvious piece of documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:26:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/missing-regen-after-editing-a-block-definition-or-after-its-undo/m-p/12486620#M5993</guid>
      <dc:creator>stefanome</dc:creator>
      <dc:date>2024-01-09T18:26:07Z</dc:date>
    </item>
  </channel>
</rss>

