<?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: Is Possible to roll back variable within undo command , outside of transacti in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366295#M56920</link>
    <description>&lt;P&gt;Thanks Alfred , &amp;nbsp;I got it and I understood.&lt;/P&gt;&lt;P&gt;Now let's say that local vairable &amp;nbsp;instead of one, &amp;nbsp;is 500 local variables .&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case what would be the solution ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Mar 2012 18:55:48 GMT</pubDate>
    <dc:creator>JanetDavidson</dc:creator>
    <dc:date>2012-03-10T18:55:48Z</dc:date>
    <item>
      <title>Is Possible to roll back variable within undo command , outside of transaction?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366219#M56916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to be able to roll back my variables if user apply an UNDO. I am just wondering if this is possible and what is your trick in this regard. Let's say.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Myinteger =1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Startstransaction&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;trans commint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Myinteger=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Startstransaction&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;trans commint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Myinteger=3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if user does undo 2 times &amp;nbsp;the Variable &amp;nbsp;Myinteger &amp;nbsp;keep the value &amp;nbsp;3 . I want it back to 1. How?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help or workaround or trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 15:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366219#M56916</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-03-10T15:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366225#M56917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my understanding is one undo makes one (main) transaction-part undone. With main-transaction I mean the "master" transaction without looking to any nested transactions.&lt;/P&gt;&lt;P&gt;If you want to undo more than one actions with one step you can set undo-markers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 16:11:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366225#M56917</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-10T16:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366243#M56918</link>
      <description>&lt;P&gt;Hello Alfred,&lt;/P&gt;&lt;P&gt;Thanks for your time looking into my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My concern is &amp;nbsp;the public shared variable in whole project &amp;nbsp;( in this simple sample, say , "myinteger".&lt;/P&gt;&lt;P&gt;When I &amp;nbsp;undo a &amp;nbsp;command that variable doesn't roll back ot initial value .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I explained or you need a asimple example code?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 17:43:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366243#M56918</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-03-10T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366259#M56919</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, you want your local variable to be restored, sorry, I did'nt check that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my ideas would be then: either check CommandEnded-event (watchign for command _UNDO) and use a stack for every variable-change or use a drawings-sysvar for saving and restoring your variable, because the sysvars (e.g. USERI1) will notice undo-commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case (I normally don't use the USER-vars) the advantage is also that you have saved it with the drawing. Because if the user changes the drawing between step 2 and step 3 your global variable will also have to be reset as the other drawing may stay at another step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 18:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366259#M56919</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-10T18:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366295#M56920</link>
      <description>&lt;P&gt;Thanks Alfred , &amp;nbsp;I got it and I understood.&lt;/P&gt;&lt;P&gt;Now let's say that local vairable &amp;nbsp;instead of one, &amp;nbsp;is 500 local variables .&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case what would be the solution ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 18:55:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366295#M56920</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-03-10T18:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366307#M56921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;store it in&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dictionary&lt;/LI&gt;&lt;LI&gt;ExtendedEntityData&lt;/LI&gt;&lt;LI&gt;Block with 500 Attributes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a few examples &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2012 19:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366307#M56921</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-10T19:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is Possible to roll back variable within undo command , outside of transacti</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366493#M56922</link>
      <description>&lt;P&gt;Hi alfred, I like Attributes Idea, Yeah that will do the job for me.&lt;/P&gt;&lt;P&gt;Thanks for showing the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2012 08:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-possible-to-roll-back-variable-within-undo-command-outside-of/m-p/3366493#M56922</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2012-03-11T08:10:42Z</dc:date>
    </item>
  </channel>
</rss>

