<?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 Is there any way to do transactions without Undo/Redo? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11444930#M16605</link>
    <description>&lt;P&gt;Hi, I am making a tool that syncs some meshes with a server and for each change I create a new transaction. It works well and all, but I have this problem that Revits Undo/Redo queue is all filled with my transactions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two issues wth this,&lt;/P&gt;&lt;P&gt;a)&amp;nbsp;I don't want the user to undo a synch that should be happening by itself&lt;/P&gt;&lt;P&gt;b) The user can't undo what he does because the queue is filled with synchronizations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do transactions without them being present in Undo/Redo queue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 07:21:02 GMT</pubDate>
    <dc:creator>fewik72296</dc:creator>
    <dc:date>2022-09-26T07:21:02Z</dc:date>
    <item>
      <title>Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11444930#M16605</link>
      <description>&lt;P&gt;Hi, I am making a tool that syncs some meshes with a server and for each change I create a new transaction. It works well and all, but I have this problem that Revits Undo/Redo queue is all filled with my transactions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two issues wth this,&lt;/P&gt;&lt;P&gt;a)&amp;nbsp;I don't want the user to undo a synch that should be happening by itself&lt;/P&gt;&lt;P&gt;b) The user can't undo what he does because the queue is filled with synchronizations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do transactions without them being present in Undo/Redo queue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 07:21:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11444930#M16605</guid>
      <dc:creator>fewik72296</dc:creator>
      <dc:date>2022-09-26T07:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11444999#M16606</link>
      <description>&lt;P&gt;You can cut down on the number of items on the undo stack by wrapping transactions in a TransactionGroup and using Assimilate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't eliminate them altogether unless you are using IUpdater to make the changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11444999#M16606</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-09-26T08:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445138#M16607</link>
      <description>&lt;P&gt;So moving my modifications to&amp;nbsp;&lt;SPAN&gt;IUpdater&amp;nbsp;would make them not show up in undo/redo?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 09:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445138#M16607</guid>
      <dc:creator>fewik72296</dc:creator>
      <dc:date>2022-09-26T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445178#M16608</link>
      <description>&lt;P&gt;IUpdater doesn't use transaction to make modifications they are transparent. It also doesn't encounter worksharing conflicts but that also means the changes may not stick if there are such conflicts (no notification I believe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You wouldn't choose an IUpdater just to avoid undo items. The purpose of an IUpdater is to make changes to the model in response to other changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:11:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445178#M16608</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-09-26T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445673#M16609</link>
      <description>&lt;P&gt;That kinda seems to be my situation and only solution. If I reduce the number of transactions, the user can still undo them and it will interfere with his work. He will still be able to remove what my addin did.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 13:53:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11445673#M16609</guid>
      <dc:creator>fewik72296</dc:creator>
      <dc:date>2022-09-26T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11450263#M16610</link>
      <description>&lt;P&gt;So I've looked into the IUpdaters and it seems like I misunderstood it slightly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have it right that IUpdater is only called during a added/modified/deleted transaction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am doing is updating stuff for the user, so my changes need to happen continously regardles of user input. So IUpdater can't really do what I need, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the same time, if do a transaction with an IUpdater, then that transaction can still get UNDOed or Redone, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understood it right, than it seems there is no way for me to sync out of Revit data without destroying a users undo/redo queue &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 14:40:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11450263#M16610</guid>
      <dc:creator>fewik72296</dc:creator>
      <dc:date>2022-09-28T14:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11450549#M16611</link>
      <description>&lt;P&gt;The question would be what triggers the change you require?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is something in Revit such as covered by:&lt;/P&gt;&lt;P&gt;Element.GetChangeTypeAny/Addition/Deletion/Geometry/Parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then IUpdater is fine for your purpose. However, if change is triggered by something external to Revit then no. For that you would typically use IExternalEventHandler which then requires a transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't start a transaction with IUpdeter it is forbidden.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 16:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11450549#M16611</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-09-28T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to do transactions without Undo/Redo?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11451560#M16612</link>
      <description>&lt;P&gt;Yes, the change triggers externaly. So I guess my current implementation is the only way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to prevent a transaction from creating Undo/Redo?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:41:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-way-to-do-transactions-without-undo-redo/m-p/11451560#M16612</guid>
      <dc:creator>fewik72296</dc:creator>
      <dc:date>2022-09-29T07:41:01Z</dc:date>
    </item>
  </channel>
</rss>

