<?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: IExternalCommand could not be found in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7389752#M56034</link>
    <description>&lt;P&gt;Oh, I see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nope, sorry... just intended as a quick and dirty way to get going really fast for a rapid test command...&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>Tue, 19 Sep 2017 06:40:27 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-09-19T06:40:27Z</dc:date>
    <item>
      <title>IExternalCommand could not be found</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7386154#M56030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've decided to have another go at building a ribbon for Revit to run some of my C# commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit SDK 2017 has a Ribbon example, which I've decided to try to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I open the solution in Visual Studio I get loads of compile errors, the first one being:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The type or namespace name 'IExternalCommand' could not be found (are you missing a using directive or an assembly reference.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using Revit 2017. I've added RevitAPI and RevitAPIUI into the solutions references, and the code has the following using directives at the beginning (these were part of the original Autodesk ribbon sample code - I've not changed anything):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;using System;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Collections.Generic;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Linq;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Text;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Revit;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Revit.DB;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Diagnostics;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.IO;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Collections;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Revit.UI;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Revit.ApplicationServices;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Revit.Attributes;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Windows.Media.Imaging;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also changed the .net framework to 4.5.2 - I understand that Revit 2017 uses this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But still the build errors - Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 16:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7386154#M56030</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2017-09-17T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: IExternalCommand could not be found</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7387399#M56031</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open csproj file in any text editor and ensure, that RevitAPI and RevitAPIUI reference hint path points towards right location:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;    &amp;lt;Reference Include="RevitAPI"&amp;gt;
      &amp;lt;SpecificVersion&amp;gt;False&amp;lt;/SpecificVersion&amp;gt;
      &amp;lt;HintPath&amp;gt;C:\Program Files\Autodesk\Revit Architecture 2017\RevitAPI.dll&amp;lt;/HintPath&amp;gt;
      &amp;lt;Private&amp;gt;False&amp;lt;/Private&amp;gt;
    &amp;lt;/Reference&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am almost sure, that you Revit is in "C:\Program Files\Autodesk\Revit 2017\" folder, not in Revit Architecture 2017&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 12:09:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7387399#M56031</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2017-09-18T12:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: IExternalCommand could not be found</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7388544#M56032</link>
      <description>&lt;P&gt;The best way to avoid all problems with loading is to understand what is going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is very simple and explained in full detail in the developer guide section on getting started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/RVT/2018/ENU/?guid=GUID-C574D4C8-B6D2-4E45-93A5-7E35B7E289BE" target="_blank"&gt;http://help.autodesk.com/view/RVT/2018/ENU/?guid=GUID-C574D4C8-B6D2-4E45-93A5-7E35B7E289BE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way, in case you wish to avoind any under the hood knowledge, is to use the Visual Studio Revit add-in wizard:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.20" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My wizard is minimal and simple and just solves your loading problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also note the alternative, more complex and full-fledged&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Andrey-Bushman/Revit2017AddInTemplateSet" target="_blank"&gt;Revit2017AddInTemplateSet&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provided by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/Andrey-Bushman" target="_blank"&gt;Andrey Bushman&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will probably generate your entire ribbon panel for you automatically, if you like.&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, 18 Sep 2017 18:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7388544#M56032</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-09-18T18:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: IExternalCommand could not be found</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7388792#M56033</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1257478"&gt;@aignatovich&lt;/a&gt;&amp;nbsp;- Looking at the csproj file, it seems that the Autodesk DLLs were set to a relative path from the SDK installation location - I copied the Ribbon sample folder (as I wanted to amend it) - but the new location couldn't find the DLLs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I amended the reference path as you suggested and it still came up with the same error - I even tried deleting the reference and re-adding it - same error...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did try opening the ribbon project from the SDK - and this opened fine - I'll try working with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Anonymous&amp;nbsp;- I normally use your&amp;nbsp;Visual Studio addin wizard when starting a new project - but this time I wanted to open the existing project - and copying it to a new location caused the errors I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to open an existing project using the addin wizard?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 19:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7388792#M56033</guid>
      <dc:creator>Kevin.Bell</dc:creator>
      <dc:date>2017-09-18T19:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: IExternalCommand could not be found</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7389752#M56034</link>
      <description>&lt;P&gt;Oh, I see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nope, sorry... just intended as a quick and dirty way to get going really fast for a rapid test command...&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>Tue, 19 Sep 2017 06:40:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iexternalcommand-could-not-be-found/m-p/7389752#M56034</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-09-19T06:40:27Z</dc:date>
    </item>
  </channel>
</rss>

