<?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: Calling Revit Plug-In without Revit Open in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5898832#M73036</link>
    <description>&lt;P&gt;There is&amp;nbsp;real need for a "headless" Revit.&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2015 09:17:43 GMT</pubDate>
    <dc:creator>Dale.Bartlett</dc:creator>
    <dc:date>2015-11-09T09:17:43Z</dc:date>
    <item>
      <title>Calling Revit Plug-In without Revit Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5574286#M73033</link>
      <description>&lt;P&gt;I'm writing software that extracts and analyzes information from Revit using a Revit API plug-in, but as it stands the plug-in has to be activated from the External Tools menu in Revit, and ideally I'd like the start point to be within my application, instead of Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that Revit probably has to be open to run the plug-in within its own runtime, but I'm wondering if it's possible to start a hidden instance of Revit and call the plug-in like that instead of having to explicitly start Revit and select the plug-in from the menu. Is something like this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:05:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5574286#M73033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T18:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Revit Plug-In without Revit Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5574599#M73034</link>
      <description>Hello JackVR!&lt;BR /&gt;&lt;BR /&gt;As you've found out, there is no direct support out of the box for what you want. A Revit instance must be running in order for an add-in to be executed. However, you can possibly sort of work around it if you figure out how to instantiate a Revit process that is hidden. Perhaps you can launch it in a separate desktop, one that is set to be out of screen. Even then, though, it is still a limitation that you cannot invoke your add-in from outside of Revit. The call must always come from within Revit. External command is out of the question, I presume, because there will be no user to click it and invoke it. However, I assume you do not need an external command anyway. My guess is that you want to do something to a model, and for that all you ought to need is one of the document events, most likely DocumentOpened. Or, as an alternative, you can do your task in an ApplicationIitialized event or in OnStartup method your external application implements. The following are the steps for one of the possible workflow:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1.       Implement your functionality in an add-in (external application) and have it installed in Revit.&lt;BR /&gt;&lt;BR /&gt;2.       Design a simple standalone application (exe) that starts Revit in a separate process.&lt;BR /&gt;&lt;BR /&gt;3.       Use the standalone application to start Revit hidden somehow (or not hidden, if you do not care)&lt;BR /&gt;&lt;BR /&gt;4.       In the OnStartup method your application implements, subscribe to ApplicationInitialized event&lt;BR /&gt;&lt;BR /&gt;5.       When your add-in receives the event, open the document you want to analyze&lt;BR /&gt;&lt;BR /&gt;6.       When the document is opened, perform the analysis; output whatever you need to output.&lt;BR /&gt;&lt;BR /&gt;7.       Close the document.&lt;BR /&gt;&lt;BR /&gt;8.       Notify the standalone application that your task is finished. Perhaps some kind of inter-process messaging can be used - I suggest making it asynchronous.&lt;BR /&gt;&lt;BR /&gt;9.       Exit the ApplicationInitialized event handler&lt;BR /&gt;&lt;BR /&gt;10.   When the standalone application receives the inter-process message from your add-in, kill the Revit process.</description>
      <pubDate>Tue, 07 Apr 2015 20:42:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5574599#M73034</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-04-07T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Revit Plug-In without Revit Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5575396#M73035</link>
      <description>&lt;P&gt;Hi Arnošt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the cool suggestion!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This fits in well with a case that I just answered, so I added it to The Building Coder as well for future reference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/04/duplicate-add-in-guid-and-driving-revit-from-outside.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/04/duplicate-add-in-guid-and-driving-revit-from-outside.html#3&lt;/A&gt;&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>Wed, 08 Apr 2015 11:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5575396#M73035</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-04-08T11:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Revit Plug-In without Revit Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5898832#M73036</link>
      <description>&lt;P&gt;There is&amp;nbsp;real need for a "headless" Revit.&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 09:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5898832#M73036</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-11-09T09:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Revit Plug-In without Revit Open</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5899470#M73037</link>
      <description>&lt;P&gt;That is definitely an argument we understand I do agree with.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 15:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/calling-revit-plug-in-without-revit-open/m-p/5899470#M73037</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-11-09T15:43:16Z</dc:date>
    </item>
  </channel>
</rss>

