<?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: Revit API help with 2 sequential transactions in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6741015#M61846</link>
    <description>&lt;P&gt;More was said on this issue in the StackOverflow thread, plus a completely different underlying problem was unearthed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarised the entire discussion on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/12/need-for-regen-and-parameter-display-name-confusion.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/12/need-for-regen-and-parameter-display-name-confusion.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2016 08:52:25 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2016-12-10T08:52:25Z</dc:date>
    <item>
      <title>Revit API help with 2 sequential transactions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6700884#M61842</link>
      <description>Currently, I made a tool to rename view numbers (“Detail Number”) on a sheet based on their location on the sheet. Where this is breaking is the transactions. Im trying to do two transactions sequentially in Revit Python Shell. I also did this originally in dynamo, and that had a similar fail , so I know its something to do with transactions. Transaction #1: Add a suffix (“-x”) to each detail number to ensure the new numbers won’t conflict (1 will be 1-x, 4 will be 4-x, etc) Transaction #2: Change detail numbers with calculated new number based on viewport location (1-x will be 3, 4-x will be 2, etc) Better visual explanation here: &lt;A href="https://www.docdroid.net/EP1K9Di/161115-viewport-diagram-.pdf.html" target="_blank"&gt;https://www.docdroid.net/EP1K9Di/161115-viewport-diagram-.pdf.html&lt;/A&gt; Attached is the python file, but essentially what im trying to do is: # &amp;lt;---- Make unique numbers t = Transaction(doc, 'Rename Detail Numbers') t.Start() for i, viewport in enumerate(viewports): setParam(viewport, "Detail Number",getParam(viewport,"Detail Number")+"x") t.Commit() # &amp;lt;---- Do the thang t2 = Transaction(doc, 'Rename Detail Numbers') t2.Start() for i, viewport in enumerate(viewports): setParam(viewport, "Detail Number",detailViewNumberData[i]) t2.Commit() Attached is py file</description>
      <pubDate>Mon, 21 Nov 2016 19:55:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6700884#M61842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API help with 2 sequential transactions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6700974#M61843</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;dear&amp;nbsp;chris,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;please research this topic in depth and give it a nice deep ponder:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.33&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;the behaviour you describe indicates (well, hints at, very subtly) a need for regeneration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 20:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6700974#M61843</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-11-21T20:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API help with 2 sequential transactions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6701033#M61844</link>
      <description>Hi Chris,&lt;BR /&gt;To follow up on Jeremy's very insightful suggestion, check out transactionGroups and assimilate.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;-Matt</description>
      <pubDate>Mon, 21 Nov 2016 20:58:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6701033#M61844</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2016-11-21T20:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API help with 2 sequential transactions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6701715#M61845</link>
      <description>&lt;P&gt;Thank you Matt, fully concur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added more background info in my answer to the same question on StackOverflow:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/40728351/2-sequential-transactions-setting-detail-number-revit-api-python/40735868#40735868" target="_blank"&gt;http://stackoverflow.com/questions/40728351/2-sequential-transactions-setting-detail-number-revit-api-python/40735868#40735868&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 07:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6701715#M61845</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-11-22T07:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API help with 2 sequential transactions</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6741015#M61846</link>
      <description>&lt;P&gt;More was said on this issue in the StackOverflow thread, plus a completely different underlying problem was unearthed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarised the entire discussion on The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/12/need-for-regen-and-parameter-display-name-confusion.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/12/need-for-regen-and-parameter-display-name-confusion.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 08:52:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-help-with-2-sequential-transactions/m-p/6741015#M61846</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-12-10T08:52:25Z</dc:date>
    </item>
  </channel>
</rss>

