<?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: TransactionGroup Rollback in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9043424#M39641</link>
    <description>&lt;P&gt;All you are doing in each individual transaction is renumbering a sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why waste an entire transaction for that task?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not do all the renumbering of all sheets in one single transaction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What possible causes can you have to want to roll back the modification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From this minimal snippet of your, it looks to me as if you could simplify your process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 12:44:57 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2019-09-24T12:44:57Z</dc:date>
    <item>
      <title>TransactionGroup Rollback</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042756#M39638</link>
      <description>&lt;P&gt;Hi all. Maybe someone across this problem.&amp;nbsp;&lt;BR /&gt;I do rollback transactionGroup after commiting some transactions in this group. But it isn't works in local file which was done from central model. It successfully works in usual local file. Can anyone help me?&lt;/P&gt;&lt;PRE&gt; using (TransactionGroup transactionGroup = new TransactionGroup(Doc, "TransGroup"))
                {
                    transactionGroup.Start("Numerating Sheets");
                    Transaction transaction = new Transaction(Doc, "Transaction");
                    foreach (var sheet in sheets)
                    {
                        if (_flag)
                        {
                            transactionGroup.RollBack();
                            break;
                        }
                        transaction.Start("Numbering Sheet");
                        ViewSheet viewSheet = Doc.GetElement(sheet.ElementId) as ViewSheet;
                        viewSheet.SheetNumber = sheet.Number;
                        MainWindow.ProgressBar.Dispatcher.Invoke(new ProgressBarDelegate(UpdateProgress),
                            DispatcherPriority.Background);
                        transaction.Commit();
                    }
                    if (!_flag)
                        transactionGroup.Assimilate();&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042756#M39638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: TransactionGroup Rollback</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042781#M39639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;These links will help you to solve your issue&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/12/saving-a-new-central-file-to-revit-server.html" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2013/12/saving-a-new-central-file-to-revit-server.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/12/saving-a-new-central-file-to-revit-server.html#4" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2013/12/saving-a-new-central-file-to-revit-server.html#4&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:51:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042781#M39639</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2019-09-24T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: TransactionGroup Rollback</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042839#M39640</link>
      <description>&lt;P&gt;Thank you for reporting, but in that article Jeremy said about naming of transactions. In my case, i just can't rollback group of transactions. TransactionStatus is RolledBack, but changes still accepted.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:13:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9042839#M39640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T10:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: TransactionGroup Rollback</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9043424#M39641</link>
      <description>&lt;P&gt;All you are doing in each individual transaction is renumbering a sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why waste an entire transaction for that task?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not do all the renumbering of all sheets in one single transaction?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What possible causes can you have to want to roll back the modification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From this minimal snippet of your, it looks to me as if you could simplify your process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 12:44:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9043424#M39641</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-24T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: TransactionGroup Rollback</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9043584#M39642</link>
      <description>&lt;P&gt;Thank you for answer! I did renumbering in single transaction as you say. My sollution was really hard &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I want to user can abort numbering and don't wait for ending of operation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 13:18:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transactiongroup-rollback/m-p/9043584#M39642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-24T13:18:42Z</dc:date>
    </item>
  </channel>
</rss>

