<?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 Add-in runs in debug but not standalone. in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014816#M39927</link>
    <description>&lt;P&gt;Thanks for your response Jeremy. Yes, CopyLocal was set to false. Looks like I figured this one out. The problem was that for the AssemblyName parameter I used just the file name. Revit wanted to have a full path. This did the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Autodesk\Revit\Addins\2018\MyAddins.dll");&lt;BR /&gt;PushButtonData button1 = new PushButtonData("MyButton", "Export model data",fileName, "MyExportCommand");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still puzzled why it was working in Debug mode, but I need a full path when Visual Studio is not present ....&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 19:35:30 GMT</pubDate>
    <dc:creator>konstantin.udilovich</dc:creator>
    <dc:date>2019-09-09T19:35:30Z</dc:date>
    <item>
      <title>Revit Add-in runs in debug but not standalone.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014034#M39925</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am observing a strange behavior. My&amp;nbsp;IExternalApplication loads correctly and configures the buttons on the ribbon when I run it in Debug mode, by starting Revit as an external program from Visual Studio. At the compile time, the files are copied automatically into the Addin folder. When I close the Visual Studio and start Revit from a shortcut the app crashes when it tries to add a button to a ribbon. The contents of the Addin folder is the same.&amp;nbsp; I have checked that both VS and the desktop icon point to the same Revit.exe.&amp;nbsp;What could be the difference in running an app in debug mode versus standalone Revit?&lt;/P&gt;&lt;P&gt;Additional information: I do use Managed Compatibility Mode in Visual Studio debug settings.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014034#M39925</guid>
      <dc:creator>konstantin.udilovich</dc:creator>
      <dc:date>2019-09-09T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Add-in runs in debug but not standalone.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014802#M39926</link>
      <description>&lt;P&gt;Is 'Copy Local' set to &lt;U&gt;false&lt;/U&gt; on the Revit API assemblies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/08/set-copy-local-to-false.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2011/08/set-copy-local-to-false.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 19:28:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014802#M39926</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-09-09T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Add-in runs in debug but not standalone.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014816#M39927</link>
      <description>&lt;P&gt;Thanks for your response Jeremy. Yes, CopyLocal was set to false. Looks like I figured this one out. The problem was that for the AssemblyName parameter I used just the file name. Revit wanted to have a full path. This did the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"Autodesk\Revit\Addins\2018\MyAddins.dll");&lt;BR /&gt;PushButtonData button1 = new PushButtonData("MyButton", "Export model data",fileName, "MyExportCommand");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still puzzled why it was working in Debug mode, but I need a full path when Visual Studio is not present ....&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 19:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-add-in-runs-in-debug-but-not-standalone/m-p/9014816#M39927</guid>
      <dc:creator>konstantin.udilovich</dc:creator>
      <dc:date>2019-09-09T19:35:30Z</dc:date>
    </item>
  </channel>
</rss>

