<?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: Invoking a plugin through automation in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3747788#M7257</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you mean if&amp;nbsp;&lt;EM&gt;LcTlSimulationHelper.Instance.Play();&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;cannot work when calling from an automation, or any code (like pop out a message box in the plugin)? If it is for&amp;nbsp;&lt;EM&gt;LcTlSimulationHelper, &lt;/EM&gt;sorry as I having said, this is NOT a public API we support now. We cannot guarantee all of its behaviors.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2013 05:19:37 GMT</pubDate>
    <dc:creator>xiaodong_liang</dc:creator>
    <dc:date>2013-01-08T05:19:37Z</dc:date>
    <item>
      <title>Invoking a plugin through automation</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3746128#M7256</link>
      <description>&lt;P&gt;The plugin(shown below) is running when i click the button in Add-ins tab of Navisworks application. But when I try to execute the plugin through automation its not working.&amp;nbsp;&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.Windows.Forms;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using System.Text;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Add two new namespaces&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Navisworks.Api;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Navisworks.Api.Plugins;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Navisworks.Api.Interop;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Navisworks.Api.Timeliner;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;using Autodesk.Navisworks.Api.Interop.Timeliner;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;namespace BasicPlugIn&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [PluginAttribute("BasicPlugIn.ABasicPlugin", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Plugin name&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ADSK", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//4 character Developer ID or GUID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ToolTip = "BasicPlugIn.ABasicPlugin tool tip", &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//The tooltip for the item in the ribbon&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DisplayName = "Simulation Play Plugin")] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Display name for the Plugin in the Ribbon&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public class ABasicPlugin : AddInPlugin //Derives from AddInPlugin&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public override int Execute(params string[] parameters)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LcTlSimulationHelper.Instance.Play();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;#endregion&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to execute the above plugin using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;string aString = "Hello";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Autodesk.Navisworks.Api.Automation.NavisworksApplication navisworksApplication =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new Autodesk.Navisworks.Api.Automation.NavisworksApplication();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;navisworksApplication.ExecuteAddInPlugin("BasicPlugIn.ABasicPlugin.ADSK",aString);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;But this does not help execute the plugin and start the timeliner simulation.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3746128#M7256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-04T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a plugin through automation</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3747788#M7257</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you mean if&amp;nbsp;&lt;EM&gt;LcTlSimulationHelper.Instance.Play();&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;cannot work when calling from an automation, or any code (like pop out a message box in the plugin)? If it is for&amp;nbsp;&lt;EM&gt;LcTlSimulationHelper, &lt;/EM&gt;sorry as I having said, this is NOT a public API we support now. We cannot guarantee all of its behaviors.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 05:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3747788#M7257</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-08T05:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a plugin through automation</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3747834#M7258</link>
      <description>&lt;P&gt;Yes.&amp;nbsp;&lt;EM&gt;LcTlSimulationHelper.Instance.Play()&amp;nbsp;&lt;/EM&gt;is not working when that plugin is called through automation. But it is working perfectly as a plugin in navisworks application.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 08:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3747834#M7258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T08:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking a plugin through automation</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3750812#M7259</link>
      <description>&lt;P&gt;Since this is not a public (unsupported) API, things could go wrong.. Sorry for not much helping at this moment.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:53:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/invoking-a-plugin-through-automation/m-p/3750812#M7259</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-11T07:53:10Z</dc:date>
    </item>
  </channel>
</rss>

