<?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: Transaction Limit? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839932#M21757</link>
    <description>&lt;P&gt;Thanks Jeremy. I will try your suggestions. The strange thing is that it works the second time (and beyond) I run it but not the first time.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 14:58:05 GMT</pubDate>
    <dc:creator>J33C316</dc:creator>
    <dc:date>2021-12-23T14:58:05Z</dc:date>
    <item>
      <title>Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839831#M21753</link>
      <description>&lt;P&gt;I have an app that runs multiple transactions that vary in number. Some will not show up in Revit's undo list some of the time. The start and commit are getting hit every time in debug mode. Is there a transaction limit or some sort of undo limit in Revit? Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839831#M21753</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2021-12-23T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839837#M21754</link>
      <description>&lt;P&gt;I am not aware of any such limit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839837#M21754</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-12-23T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839903#M21755</link>
      <description>&lt;P&gt;This is the part of the code that gets hit every time but doesn't always appear in Revit's undo. The app renumbers existing sheets and inserts a new sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;                            // changes sheet numbers of existing sheets
                            Transaction t = new Transaction(doc, "Renumbered Existing Sheet: " + exgSheetNumb + " to " + newSheetNumb);
                            FilteredElementCollector newsheets = new FilteredElementCollector(doc).OfClass(typeof(ViewSheet));
                            foreach (ViewSheet sht in newsheets)
                            {
                                if (sht.SheetNumber == exgSheetNumb)
                                {
                                    t.Start();
                                    sht.get_Parameter(BuiltInParameter.SHEET_NUMBER).Set(sht.SheetNumber.Replace(exgSheetNumb, newSheetNumb));
                                    t.Commit();
                                }
                            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:35:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839903#M21755</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2021-12-23T14:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839920#M21756</link>
      <description>&lt;P&gt;Three separate suggestions; try one or the other or all three as you like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Encapsulate your transaction in a `using` statement&lt;/LI&gt;
&lt;LI&gt;Collect all your renumbering tasks first, and then execute them all in one single transaction&lt;/LI&gt;
&lt;LI&gt;Encapsulate your multiple transactions into one single transaction group&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also refer to the other discussions of&amp;nbsp;handling transactions and transaction groups:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.53" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.53&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:46:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839920#M21756</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-12-23T14:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839932#M21757</link>
      <description>&lt;P&gt;Thanks Jeremy. I will try your suggestions. The strange thing is that it works the second time (and beyond) I run it but not the first time.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:58:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10839932#M21757</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2021-12-23T14:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10860319#M21758</link>
      <description>&lt;P&gt;Unfortunately I don't think there's an answer to my problem. This is really strange... If I save a new file based on a template to my hard drive it works every time. If I take that same file and put it on BIM 360 it no loner works. If I save it back down from BIM360 it still doesn't work. It's only broken on files that are on or have been on BIM 360. I can replicate this behavior over and over again and I get the same results.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 19:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10860319#M21758</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2022-01-05T19:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10860374#M21759</link>
      <description>&lt;P&gt;That sounds weird. Maybe the BIM360 folks have a helpful idea or related experience?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/bim-360/ct-p/2025" target="_blank"&gt;https://forums.autodesk.com/t5/bim-360/ct-p/2025&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 19:36:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/10860374#M21759</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-01-05T19:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/11356508#M21760</link>
      <description>&lt;P&gt;I let this sit on the shelf for a while but I just stumbled onto something that sheds some light on my problem. If I take ownership of of the views (sheet) before I run my code the program works perfectly and all transactions are available in the undo command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code has a form and the user selects the sheets via a DataGridView. See attachment. The problem now is that I don't know how to take ownership "Editable" of the Views: Sheets using the API. I'll also need to release the ownership of the Views: Sheets before the program exits. I guess I could keep ownership until the user syncs but that is not very elegant. Any tips on how to programmatically take ownership via the API? Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 19:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/11356508#M21760</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2022-08-12T19:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Limit?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/11356510#M21761</link>
      <description>&lt;P&gt;I let this sit on the shelf for a while but I just stumbled onto something that sheds some light on my problem. If I take ownership of of the views (sheet) before I run my code the program works perfectly and all transactions are available in the undo command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code has a form and the user selects the sheets via a DataGridView. See attachment. The problem now is that I don't know how to take ownership "Editable" of the Views: Sheets using the API. I'll also need to release the ownership of the Views: Sheets before the program exits. I guess I could keep ownership until the user syncs but that is not very elegant. Any tips on how to programmatically take ownership via the API? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I replied to the wrong message previously. Sorry for the duplication.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 19:14:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-limit/m-p/11356510#M21761</guid>
      <dc:creator>J33C316</dc:creator>
      <dc:date>2022-08-12T19:14:40Z</dc:date>
    </item>
  </channel>
</rss>

