<?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: Add-in program update from 2009 API to 2012 API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3646958#M80419</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FilteredElementCollectior is the way to get elements on a Revit project. You can find a good overview here: &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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this help. Migrating from 2009 will take some time, specially due the changes from 2010 to 2011, but it can be a good change to improve your application with the new APIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2012 17:44:29 GMT</pubDate>
    <dc:creator>augusto.goncalves</dc:creator>
    <dc:date>2012-10-04T17:44:29Z</dc:date>
    <item>
      <title>Add-in program update from 2009 API to 2012 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3638300#M80416</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am updating an external function (add-in) using in Revit 2009 to 2012. After I have copied the new RevitAPI.dll and RevitAPIUI.dll into my solution, I find that many functions belong to different library with comparing in 2009 API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spend some time to resolve the library of the function, for example (If I am wrong please tell me, thank you&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Revit.IExternalCommand&amp;nbsp; =&amp;gt;&amp;nbsp;&amp;nbsp; Autodesk.Revit.UI.IExternalCommand&lt;/P&gt;&lt;P&gt;Autodesk.Revit.IExternalCommand.Result&amp;nbsp; =&amp;gt;&amp;nbsp; Autodesk.Revit.UI.Result&lt;/P&gt;&lt;P&gt;Autodesk.Revit.ElementSet&amp;nbsp; =&amp;gt;&amp;nbsp; Autodesk.Revit.DB.ElementSet&lt;/P&gt;&lt;P&gt;Autodesk.Revit.Document =&amp;gt;&amp;nbsp; Autodesk.Revit.DB.Document&lt;/P&gt;&lt;P&gt;Autodesk.Revit.Elements.ExternalCommandData&amp;nbsp; =&amp;gt;&amp;nbsp; Autodesk.Revit.DB.ExternalCommandData&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there are some functions I cannot find its new library, please tell me how to update them, thank you.&lt;BR /&gt;The unchanged part is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autodesk.Revit.Filter filter;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autodesk.Revit.Creation.Application create;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create = cmdData.Application.Create;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter = create.Filter.NewTypeFilter(typeof(Grid));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 10:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3638300#M80416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-28T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in program update from 2009 API to 2012 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3638908#M80417</link>
      <description>&lt;P&gt;have a look of the following in the 2013 API chm documentation:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Revit.Creation namespace - Document class&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Revit.DB namespace - FilteredElementCollector class&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 16:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3638908#M80417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-28T16:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in program update from 2009 API to 2012 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3644252#M80418</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read some documents said that there is a large change when in the revit API 2011, where the Document.Elements collection, the Document.get_Elements( type ) and the filter mechanism have all been removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use the FilteredElementCollection class and its element to re-write the add-in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 10:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3644252#M80418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-03T10:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in program update from 2009 API to 2012 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3646958#M80419</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FilteredElementCollectior is the way to get elements on a Revit project. You can find a good overview here: &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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this help. Migrating from 2009 will take some time, specially due the changes from 2010 to 2011, but it can be a good change to improve your application with the new APIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/add-in-program-update-from-2009-api-to-2012-api/m-p/3646958#M80419</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2012-10-04T17:44:29Z</dc:date>
    </item>
  </channel>
</rss>

