<?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: Update Revit Plugin dll in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12528945#M7508</link>
    <description>&lt;P&gt;But maybe I could create a&amp;nbsp;&lt;STRONG&gt;MyPluginLibrary.dll&lt;/STRONG&gt; too, that is loadad by the &lt;STRONG&gt;MyPlugin.dll&lt;/STRONG&gt; at runtime like this:&lt;BR /&gt;Assembly assembly = Assembly.LoadFrom("MyPluginLibrary.dll");&lt;BR /&gt;and contains the main code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I could Unload, Update and Load the&amp;nbsp;MyPluginLibrary.dll when I need it.&lt;BR /&gt;Could this work?&lt;BR /&gt;But maybe I do not have the rights to copy files to the AddIns folder?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 12:18:50 GMT</pubDate>
    <dc:creator>m.walterN99B3</dc:creator>
    <dc:date>2024-01-30T12:18:50Z</dc:date>
    <item>
      <title>Update Revit Plugin dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12522115#M7506</link>
      <description>&lt;P&gt;Actually my Plugin is located under&amp;nbsp;c:\ProgramData\Autodesk\Revit\Addins\2024\MyPlugin\MyPlugin.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like to press a button in the Plugin and&amp;nbsp;start an update process to replace the&amp;nbsp;MyPlugin.dll and copy some files to the folder&amp;nbsp;c:\ProgramData\Autodesk\Revit\Addins\2024\MyPlugin\&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Does the Plugin have to be closed or maybe Revit?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 14:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12522115#M7506</guid>
      <dc:creator>m.walterN99B3</dc:creator>
      <dc:date>2024-01-26T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update Revit Plugin dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12522310#M7507</link>
      <description>&lt;P&gt;If the file &lt;STRONG&gt;'MyPlugin.dll'&lt;/STRONG&gt; has been used by Revit you cannot replace the file until the Revit process finishes (close Revit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's how a Windows application works, if a DLL is been used by some process, is not possible to replace/delete the DLL until you finish the application that is using the file.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 16:28:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12522310#M7507</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-01-26T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update Revit Plugin dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12528945#M7508</link>
      <description>&lt;P&gt;But maybe I could create a&amp;nbsp;&lt;STRONG&gt;MyPluginLibrary.dll&lt;/STRONG&gt; too, that is loadad by the &lt;STRONG&gt;MyPlugin.dll&lt;/STRONG&gt; at runtime like this:&lt;BR /&gt;Assembly assembly = Assembly.LoadFrom("MyPluginLibrary.dll");&lt;BR /&gt;and contains the main code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I could Unload, Update and Load the&amp;nbsp;MyPluginLibrary.dll when I need it.&lt;BR /&gt;Could this work?&lt;BR /&gt;But maybe I do not have the rights to copy files to the AddIns folder?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 12:18:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12528945#M7508</guid>
      <dc:creator>m.walterN99B3</dc:creator>
      <dc:date>2024-01-30T12:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update Revit Plugin dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12529325#M7509</link>
      <description>&lt;P&gt;If you load '&lt;STRONG&gt;MyPluginLibrary.dll&lt;/STRONG&gt;' the file gonna be used by Revit the same way as the '&lt;STRONG&gt;MyPlugin.dll&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unload is not possible in the Net Framework, if the file is loaded the file is blocked until you close Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The location/directory gonna depends on what your user has rights inside the folder.&lt;/P&gt;&lt;P&gt;You could use the folder &lt;STRONG&gt;&lt;EM&gt;%appdata%\Autodesk\Revit\Addins\&lt;/EM&gt;&lt;/STRONG&gt; that is only available for the current user, and the user can do anything there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:00:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/update-revit-plugin-dll/m-p/12529325#M7509</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-01-30T15:00:10Z</dc:date>
    </item>
  </channel>
</rss>

