<?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: How to call Render Plugin using AddinPlugin in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12809864#M847</link>
    <description>&lt;P&gt;You do not need to load a RenderPlugin. It is loaded automatically dll when Navisworks is launching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plugins.FindPlugin() allows you to load a plugin that is inside your plugin's dll -&amp;gt; Plugins that are compiled inside the running dll.&lt;/P&gt;&lt;P&gt;If you need to load a plugin that is in another dll, you need to use Plugins.AddPluginAssembly(string fileName), with filename, the path to this dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 11:59:14 GMT</pubDate>
    <dc:creator>lanneauolivier</dc:creator>
    <dc:date>2024-05-31T11:59:14Z</dc:date>
    <item>
      <title>How to call Render Plugin using AddinPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12447844#M844</link>
      <description>&lt;P&gt;I've created Render Plugin. I want to call it using Addin Plugin, i use the follwing code but it is not working :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;
using NvwApplication = Autodesk.Navisworks.Api.Application;

namespace TagNoRenderAddinPlugin
{
    [PluginAttribute("TagNumberRenderPlugin",
                     "ADSK",
                     ToolTip = "To Invoke Render1",
                     DisplayName = "TagNumberRenderPlugin")]
    public class TagNumberRenderPlugin : AddInPlugin
    {
        public override int Execute(params string[] parameters)
        {
            if (!NvwApplication.IsAutomated)
            {
                PluginRecord pluginRecord = NvwApplication.Plugins.FindPlugin("TagNoRender.ADSK");
                if (pluginRecord is RenderPluginRecord &amp;amp;&amp;amp; pluginRecord.IsEnabled)
                {
                    RenderPlugin plugin = (RenderPlugin)(pluginRecord.LoadedPlugin ?? pluginRecord.LoadPlugin());
                    NvwApplication.ActiveDocument.ActiveView.RequestDelayedRedraw(Autodesk.Navisworks.Api.ViewRedrawRequests.OverlayRender);

                }
            }

            return 0;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Render plug in name "TagNoRender".&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Render plugin is tested and working perfectly when its dll is copied to Plugin folder of Navisworks it is called&amp;nbsp;&lt;/P&gt;&lt;P&gt;and working perfectly, but i want to call it manually as required. When i click this addin plugin button in Navisworks intrface nothing happen?&lt;/P&gt;&lt;P&gt;Could you please help me about this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 11:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12447844#M844</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2023-12-18T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Render Plugin using AddinPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12447936#M845</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/navisworks-api/call-render-plugin-through-addinplugin/m-p/9430718" target="_blank"&gt;https://forums.autodesk.com/t5/navisworks-api/call-render-plugin-through-addinplugin/m-p/9430718&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 12:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12447936#M845</guid>
      <dc:creator>tetsuya_miwa</dc:creator>
      <dc:date>2023-12-18T12:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Render Plugin using AddinPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12809547#M846</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3121954" target="_self"&gt;&lt;SPAN class=""&gt;tetsuya_miwa,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;i kept tying &amp;amp; trying several times, but this code is not working. Could you please provide a working example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 08:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12809547#M846</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-05-31T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Render Plugin using AddinPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12809864#M847</link>
      <description>&lt;P&gt;You do not need to load a RenderPlugin. It is loaded automatically dll when Navisworks is launching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plugins.FindPlugin() allows you to load a plugin that is inside your plugin's dll -&amp;gt; Plugins that are compiled inside the running dll.&lt;/P&gt;&lt;P&gt;If you need to load a plugin that is in another dll, you need to use Plugins.AddPluginAssembly(string fileName), with filename, the path to this dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 11:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-call-render-plugin-using-addinplugin/m-p/12809864#M847</guid>
      <dc:creator>lanneauolivier</dc:creator>
      <dc:date>2024-05-31T11:59:14Z</dc:date>
    </item>
  </channel>
</rss>

