<?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 pass parameter to RenderPlugin in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809080#M512</link>
    <description>&lt;P&gt;Answer to the last part of your question, aka&amp;nbsp;&lt;SPAN&gt;call/passing parameters to RenderPlugin from another plugin &lt;EM&gt;(mechanism below however I guess can easily be extended to cover ExecuteAddInPlugin scenario)&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let's take one of our case as exemple: our Ribbon plugin allows the user to select rendering options that are used by our RenderPlugin.&lt;BR /&gt;To minimize data exchange between plugins, both share a reference to an instance of our RendererOptions class that contains dozens of structures and parameters.&lt;BR /&gt;Since the RenderPlugin use this for each render, in theory there is (ALMOST) nothing to do. When the RibbonPlugin change any parameter in&amp;nbsp;RendererOptions instance, the RendererPlugin will use this at the next render.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I said ALMOST, because we need to tell Navisworks that a redraw is needed, so your RenderPlugin will be called and do its stuff.&lt;BR /&gt;This done with:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Application.ActiveDocument.ActiveView.RequestDelayedRedraw(ViewRedrawRequests.All);&lt;/LI-CODE&gt;&lt;P&gt;N&lt;EM&gt;ote: this queue a redraw request which is 99% of the time what you want (I can elaborate of the 1% case if needed).&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Important/Additional Comments:&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;- to be exhaustive, you could have case where changing some parameters requires to recompute some cached CPU-intensive stuff. Best is to do this in your Ribbon to keep the Rendering fast and responsible.&lt;BR /&gt;- in theory you should use a shared lock or equivalent between both Plugin when doing such stuff. In practice, if you change these settings on a ribbon event, it seems it's not needed, Navisworks being, in the past and in the &lt;SPAN&gt;foreseeable&amp;nbsp;&lt;/SPAN&gt;future, mostly single-threaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 03:28:18 GMT</pubDate>
    <dc:creator>alexisDVJML</dc:creator>
    <dc:date>2024-05-31T03:28:18Z</dc:date>
    <item>
      <title>How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12807286#M511</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to pass parameters to&amp;nbsp;RenderPlugin like AddInPlugin (when calling ExecuteAddInPlugin method from an application). Furthermore, how to call&amp;nbsp;RenderPlugin from application or from another plugin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 11:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12807286#M511</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-05-30T11:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809080#M512</link>
      <description>&lt;P&gt;Answer to the last part of your question, aka&amp;nbsp;&lt;SPAN&gt;call/passing parameters to RenderPlugin from another plugin &lt;EM&gt;(mechanism below however I guess can easily be extended to cover ExecuteAddInPlugin scenario)&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let's take one of our case as exemple: our Ribbon plugin allows the user to select rendering options that are used by our RenderPlugin.&lt;BR /&gt;To minimize data exchange between plugins, both share a reference to an instance of our RendererOptions class that contains dozens of structures and parameters.&lt;BR /&gt;Since the RenderPlugin use this for each render, in theory there is (ALMOST) nothing to do. When the RibbonPlugin change any parameter in&amp;nbsp;RendererOptions instance, the RendererPlugin will use this at the next render.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I said ALMOST, because we need to tell Navisworks that a redraw is needed, so your RenderPlugin will be called and do its stuff.&lt;BR /&gt;This done with:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Application.ActiveDocument.ActiveView.RequestDelayedRedraw(ViewRedrawRequests.All);&lt;/LI-CODE&gt;&lt;P&gt;N&lt;EM&gt;ote: this queue a redraw request which is 99% of the time what you want (I can elaborate of the 1% case if needed).&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Important/Additional Comments:&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;- to be exhaustive, you could have case where changing some parameters requires to recompute some cached CPU-intensive stuff. Best is to do this in your Ribbon to keep the Rendering fast and responsible.&lt;BR /&gt;- in theory you should use a shared lock or equivalent between both Plugin when doing such stuff. In practice, if you change these settings on a ribbon event, it seems it's not needed, Navisworks being, in the past and in the &lt;SPAN&gt;foreseeable&amp;nbsp;&lt;/SPAN&gt;future, mostly single-threaded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 03:28:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809080#M512</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2024-05-31T03:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809389#M513</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6001790" target="_self"&gt;&lt;SPAN class=""&gt;alexisDVJML&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Your contribution is highly appreciated. However, as i'm not proffessional Naviswork API programmer, can you please drive a simple example illustrate this case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 06:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809389#M513</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-05-31T06:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809843#M514</link>
      <description>&lt;P&gt;Hi Hussein,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use public variables to change it from another class as described here&lt;/P&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 11:48:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12809843#M514</guid>
      <dc:creator>lanneauolivier</dc:creator>
      <dc:date>2024-05-31T11:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12829345#M515</link>
      <description>&lt;P&gt;I want to pass data from C# application or AddinPlugin to render plugin through JSON object, is it possible???&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 09:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/12829345#M515</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-06-10T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13035766#M516</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to pass data from C# application or AddinPlugin to render plugin through JSON object, is it possible???&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2024 21:36:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13035766#M516</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-09-21T21:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13035817#M517</link>
      <description>&lt;P&gt;i use this code to pass parameter to Addin Plugin&amp;nbsp;&lt;/P&gt;&lt;P&gt;//&lt;BR /&gt;navisworksApplication.ExecuteAddInPlugin("Visualizer.ADSK", pa);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do the same with Render Plugin??&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2024 22:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13035817#M517</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-09-21T22:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13037603#M518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2214790"&gt;@HusseinOthman75&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please share more details about the JSON data you want to pass into the Render Plugin? &lt;BR /&gt;Also, how do you plan to use that data in the plugin? &lt;BR /&gt;A clear explanation will help me understand your needs better and assist you more effectively.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 07:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13037603#M518</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-09-23T07:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13112611#M519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631" target="_self"&gt;&lt;SPAN class=""&gt;naveen.kumar.t&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;First sorry for delay because i was despair of finding solution. My point is : i'm using an application that sends JSon data to Addin plugin to select certain model items. When the items are selected Render plugin display the item name.&lt;/P&gt;&lt;P&gt;What i need to do is to display the status of the item beside its name by sending the status to Render plugin using JSon object.&lt;/P&gt;&lt;P&gt;Displaying data for each model item is of crucial important to me.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 11:21:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13112611#M519</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-10-28T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13132936#M520</link>
      <description>&lt;P&gt;You support is highly appreciated. We count on you. Regards&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 05:52:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13132936#M520</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-11-06T05:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13136582#M521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2214790"&gt;@HusseinOthman75&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It isn't possible to directly pass data into a render plugin. Instead, you would need to create an intermediary plugin or class capable of reading the data and making it accessible to the render plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I haven't tested this approach on my end yet. Could you give it a try and let me know your findings?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:46:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13136582#M521</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-11-07T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13138023#M522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2214790"&gt;@HusseinOthman75&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since you mentioned wanting to pass the selected item data to RenderPlugin, you could make use of &lt;CODE&gt;PickItemFromPoint&lt;/CODE&gt; within RenderPlugin.&lt;BR /&gt;&lt;BR /&gt;Please check this blog demo&amp;nbsp;&lt;/SPAN&gt;&lt;A class="c-link c-link--underline" href="https://adndevblog.typepad.com/aec/2013/05/navisworks-2014-api-new-feature-inputplugin.html" target="_blank" rel="noopener noreferrer" data-stringify-link="https://adndevblog.typepad.com/aec/2013/05/navisworks-2014-api-new-feature-inputplugin.html" data-sk="tooltip_parent"&gt;https://adndevblog.typepad.com/aec/2013/05/navisworks-2014-api-new-feature-inputplugin.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 05:47:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13138023#M522</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-11-08T05:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass parameter to RenderPlugin</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13140850#M523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;naveen.kumar.t&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Grateful for your assistance. Please bear with me. i can't get your point but i will try to make my point more clear. I use&amp;nbsp;AddInPlugin to select certain model items. Autmoatically&amp;nbsp;RenderPlugin is called by Navisworks to display model item name : i use this method,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;graphics.Text2D(new TextFontInfo("typeFace", 7, 4, true, false), _name , _point2D, (int)1, (int)1);&lt;/P&gt;&lt;P&gt;where _name contains the model item name (from model itself). So my idea is : if i can send my custome date (which i get from database ) using JSon object or whatever , then i can attach this date to (_name) string and let it appear with model item name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you assistance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2024 17:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/how-to-pass-parameter-to-renderplugin/m-p/13140850#M523</guid>
      <dc:creator>HusseinOthman75</dc:creator>
      <dc:date>2024-11-09T17:28:05Z</dc:date>
    </item>
  </channel>
</rss>

