<?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: Performance difference between Dynamo vs Revit API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570171#M62880</link>
    <description>&lt;P&gt;Currently in the script&amp;nbsp;Dynamo is converting Revit topography into poly-surface and we are using that poly-surface to project as a base. If we could optimize these topo surfaces it will&amp;nbsp;surly become faster. Is there any way to optimise it ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2016 10:23:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-19T10:23:30Z</dc:date>
    <item>
      <title>Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6568129#M62878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Understand the performance difference between Dynamo vs Revit API.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have developed dynamo workflow to ..&lt;/P&gt;&lt;P&gt;(1) Pile structures having lakh's numbers&lt;BR /&gt;(2) Get the Bottom value of pile&lt;BR /&gt;(3) Overlayed on Surface (Generated From Contours)&lt;BR /&gt;(4) Get the new Bottom point&lt;BR /&gt;(5) Updated the Bottom and Top point for Piles&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It is taking hours to process.&lt;/P&gt;&lt;P&gt;If I develop application using Revit API in C# for same kind of working. Will it take less amount of &amp;nbsp;time compared to Dynamo?&lt;/P&gt;&lt;P&gt;If anybody in this forum has compared two versions, please provide your valuable inputs here.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is the way internally Dynamo and Revit API works in a same way?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rajesh&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2016 04:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6568129#M62878</guid>
      <dc:creator>MehtaRajesh</dc:creator>
      <dc:date>2016-09-17T04:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570120#M62879</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Rajesh,&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 query.&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;The Revit API is a .NET API.&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;All access to it is via .NET.&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;Dynamo accesses the normal Revit .NET API via .NET, so it will definitely never be faster than a non-dynamo Revit API add-in.&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;Therefore: Yes, definitely Dynamo and the Revit API work in a same way internally.&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;There is not that much overhead being added either, so Dynamo should also not be very much slower.&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;If your process requires hours to complete, there are to possible causes:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt; That is the amount of time that Revit requires to complete the task.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt; You have implemented some very inefficient algorithm.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Re 1: In the case of 1, there is not much you can do about it.&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;You could (and should!) however run the same steps manually through the user interface to see how long Revit itself requires for each step.&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;If there is no difference, everything is clear.&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;If something can be achieved faster manually, you have some optimisation work to do.&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;Re 2: An inefficient algorithm will probably be more or less equally inefficient in both a native .NET add-in and Dynamo.&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;In either case, you should benchmark your code to determine where the bottlenecks are located and what is causing them.&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;Here is some timer code for benchmarking:&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;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/01/timer-code-for-benchmarking.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/01/timer-code-for-benchmarking.html&lt;/A&gt;&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;Here are some benchmarking samples:&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;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/04/collector-benchmark.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/04/collector-benchmark.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/10/level-filter-benchmark.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/10/level-filter-benchmark.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2010/12/more-kevin-filtering-benchmarks.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/12/more-kevin-filtering-benchmarks.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/01/type-filter-benchmark-update.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2011/01/type-filter-benchmark-update.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/04/wpf-fill-pattern-viewer-control-benchmark.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/04/wpf-fill-pattern-viewer-control-benchmark.html&lt;/A&gt;&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;I hope this helps.&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;</description>
      <pubDate>Mon, 19 Sep 2016 09:46:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570120#M62879</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-19T09:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570171#M62880</link>
      <description>&lt;P&gt;Currently in the script&amp;nbsp;Dynamo is converting Revit topography into poly-surface and we are using that poly-surface to project as a base. If we could optimize these topo surfaces it will&amp;nbsp;surly become faster. Is there any way to optimise it ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570171#M62880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570263#M62881</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dynamo has its own geometry engine, allowing it to perform more types of geometric operations than Revit can do.&lt;/P&gt;
&lt;P&gt;E.g. there are more possible ways of object intersection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can see, Dynamo can calculate geometry from input data and create/show the &lt;EM&gt;result&lt;/EM&gt; in Revit as &lt;EM&gt;static&lt;/EM&gt; Elements, either as ImportInstance (e.g. SAT file) or DirectShape; in this case, Revit is just the &lt;EM&gt;display&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the &lt;EM&gt;calculation&lt;/EM&gt; itself is being done inside Dynamo, using its own engine.&lt;/P&gt;
&lt;P&gt;So if there is a performance issue, it may be found there, inside Dynamo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rudi&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 11:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570263#M62881</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-09-19T11:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570295#M62882</link>
      <description>&lt;P&gt;Yup, sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only Rajesh can reveal what exactly he is doing and where the bottleneck might be...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 11:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570295#M62882</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-19T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570492#M62883</link>
      <description>&lt;P&gt;Attached is script which we are using. Dynamo is&amp;nbsp;converting Revit topography to polysurface first and this topography is 650 Hectare area site with&amp;nbsp;1.00m interval&amp;nbsp;contour information.&amp;nbsp;If we could optimize&amp;nbsp;converted to polysurface&amp;nbsp;generated from contour&amp;nbsp;of 1.00m interval&amp;nbsp;I believe&amp;nbsp;performance will get better.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/274189iB5FEF10DC06947CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.png" alt="Capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-img-tmp-id-1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 13:04:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570492#M62883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-19T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance difference between Dynamo vs Revit API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570540#M62884</link>
      <description>&lt;P&gt;I do not know exactly what the Dynamo nodes you are using do, so I cannot say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that does sound like a valid optimisation starting point to me, just guessing, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As said, simply benchmark the steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will know exactly&amp;nbsp;what makes sense to optimise and what does not.&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>Mon, 19 Sep 2016 13:30:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/performance-difference-between-dynamo-vs-revit-api/m-p/6570540#M62884</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-19T13:30:34Z</dc:date>
    </item>
  </channel>
</rss>

