<?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] difference in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897510#M41194</link>
    <description>&lt;P&gt;Try it out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Always try out everything!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Never trust anybody except your own code!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, if you insist:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you set your transaction mode to read-only, Revit will throw an exception if you try to open a transaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That guarantees that your add-in will under no circumstances be able to modify any documents.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 06:40:53 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2019-07-09T06:40:53Z</dc:date>
    <item>
      <title>[transaction] difference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897433#M41193</link>
      <description>&lt;P&gt;What is the difference between:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//used here for example (&lt;A href="https://www.revitapidocs.com/2017/31b73d46-7d67-5dbb-4dad-80aa597c9afc.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2017/31b73d46-7d67-5dbb-4dad-80aa597c9afc.htm&lt;/A&gt;)&lt;BR /&gt;[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.ReadOnly)]&lt;/PRE&gt;&lt;PRE&gt;//used in my coding&lt;BR /&gt;[Transaction(TransactionMode.Manual)]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 05:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897433#M41193</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2019-07-09T05:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: [transaction] difference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897510#M41194</link>
      <description>&lt;P&gt;Try it out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Always try out everything!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Never trust anybody except your own code!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, if you insist:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you set your transaction mode to read-only, Revit will throw an exception if you try to open a transaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That guarantees that your add-in will under no circumstances be able to modify any documents.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:40:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897510#M41194</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-07-09T06:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: [transaction] difference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897527#M41195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiddling with C# that is what I'm doing all the time.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if an addin has no intention of altering the model itself, the TransactionMode should always be ReadOnly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because&lt;/P&gt;&lt;P&gt;1. safer&lt;/P&gt;&lt;P&gt;2. clear coding / understandable&lt;/P&gt;&lt;P&gt;3. faster (???) (For example: I can imagine that selection addin in ReadOnly could be faster than Manual selecting 100k elements?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:51:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8897527#M41195</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2019-07-09T06:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: [transaction] difference</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8903583#M41196</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Joris,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your update.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; So, if an add-in has no intention of altering the model itself, the TransactionMode should always be ReadOnly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, absolutely!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; safer&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; clear coding / understandable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; faster (???) (For example: I can imagine that selection addin in ReadOnly could be faster than Manual selecting 100k elements?)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unknown. Please try it out and let us know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transaction-difference/m-p/8903583#M41196</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-07-11T12:40:38Z</dc:date>
    </item>
  </channel>
</rss>

