<?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: Use Same Tab with Different Plugins in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5762217#M5896</link>
    <description>&lt;P&gt;Ok, I can get the command to fire in the correct plugin, but I can't get the icon to display in the ribbon. &amp;nbsp;Here's my XAML file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;RibbonControl
    x:Uid="SectionTransporter" xmlns="clr-namespace:Autodesk.Windows;assembly=AdWindows"
    xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:adwi="clr-namespace:Autodesk.Internal.Windows;assembly=AdWindows"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Autodesk.Navisworks.Gui.Roamer.AIRLook;assembly=navisworks.gui.roamer"&amp;gt;

    &amp;lt;RibbonTab Id="PclTab"&amp;gt;
        &amp;lt;RibbonPanel x:Uid="SectionTransporterPanel"&amp;gt;
	    &amp;lt;RibbonPanelSource x:Uid="SectionTransporterPanelSrc" Title="SectionTransporter"&amp;gt;
				&amp;lt;local:NWRibbonButton x:Uid="BtSt" Id="BtSt" Size="Large" ShowText="False" Orientation="Horizontal"/&amp;gt;
            &amp;lt;/RibbonPanelSource&amp;gt;
        &amp;lt;/RibbonPanel&amp;gt;
        &amp;lt;RibbonPanel x:Uid="NWFixUnitsPanel"&amp;gt;
	    &amp;lt;RibbonPanelSource x:Uid="NWFixUnitsPanelSrc" Title="Units"&amp;gt;
				&amp;lt;local:NWRibbonButton x:Uid="(@nw)NWFixUnits.ADSK.FixUnits" Id="(@nw)NWFixUnits.ADSK.FixUnits" Size="Large" ShowText="True" Orientation="Vertical"/&amp;gt;
            &amp;lt;/RibbonPanelSource&amp;gt;
        &amp;lt;/RibbonPanel&amp;gt;
    &amp;lt;/RibbonTab&amp;gt;
&amp;lt;/RibbonControl&amp;gt;&lt;/PRE&gt;&lt;P&gt;and here's my PlugIn Attributes:&lt;/P&gt;&lt;PRE&gt;    [RibbonLayout("NWFixUnits.xaml")]
    [RibbonTab("PclTab", DisplayName = "PCL-Units")]
    [Plugin("NWFixUnits", "ADSK", DisplayName = "NWFixUnits", ToolTip = "Fix Merged Model Units")]
    [Command("FixUnits", CanToggle = false, DisplayName = "Fix Units", LargeIcon = "Icon_NW-FixUnits-32.png", ToolTip = "Fix Merged Model Units")]&lt;/PRE&gt;&lt;P&gt;The XAML file is from a plugin called "SectionTransporter" so it's named for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I had both ribbons, the icon displayed. &amp;nbsp;I put the icon in both sub-folders but it won't display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2015 18:51:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-07T18:51:04Z</dc:date>
    <item>
      <title>Use Same Tab with Different Plugins</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5760643#M5893</link>
      <description>&lt;P&gt;I have two Command Handler Plugins that I want to share the same Custom Tab. &amp;nbsp;They are two different DLLs. &amp;nbsp;Is this possible or do the two have to be merged into one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 18:59:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5760643#M5893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T18:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use Same Tab with Different Plugins</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5761681#M5894</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bit of trick we added for internal use in the 2016 release of Navisworks&amp;nbsp;so there is nothing in the official API relating to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a ribbon layout file for one of the plugins and use the command Ids as you normally would for that plugin's commands. Add another set of buttons for the commands in the other plugin, but for each command use the command Id&amp;nbsp;prefixed with "(@nw)PluginName.DeveloperId." .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you have defined a plugin with a command as follows in the command plugin attributes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Plugin("JoeCommandPlugin", "JoeDevInc")]&lt;/P&gt;
&lt;P&gt;[Command("JoesFirstCommand", LoadForCanExecute = true)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would reference this in the ribbon layout for another plugin as:&lt;/P&gt;
&lt;P&gt;(@nw)&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;SPAN&gt;Command&lt;/SPAN&gt;&lt;SPAN&gt;Plugin.JoeDevInc.JoesFirstCommand&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps! Note that this is only available with&amp;nbsp;NW 2016.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards, Susan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 14:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5761681#M5894</guid>
      <dc:creator>susan_tate</dc:creator>
      <dc:date>2015-08-07T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Same Tab with Different Plugins</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5761691#M5895</link>
      <description>Thanks for the reply! I'll give this a try later on today. We only need this for 2016 and beyond anyway, so it's fine that it doesn't work before 2016.</description>
      <pubDate>Fri, 07 Aug 2015 14:17:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5761691#M5895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use Same Tab with Different Plugins</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5762217#M5896</link>
      <description>&lt;P&gt;Ok, I can get the command to fire in the correct plugin, but I can't get the icon to display in the ribbon. &amp;nbsp;Here's my XAML file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;RibbonControl
    x:Uid="SectionTransporter" xmlns="clr-namespace:Autodesk.Windows;assembly=AdWindows"
    xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:adwi="clr-namespace:Autodesk.Internal.Windows;assembly=AdWindows"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Autodesk.Navisworks.Gui.Roamer.AIRLook;assembly=navisworks.gui.roamer"&amp;gt;

    &amp;lt;RibbonTab Id="PclTab"&amp;gt;
        &amp;lt;RibbonPanel x:Uid="SectionTransporterPanel"&amp;gt;
	    &amp;lt;RibbonPanelSource x:Uid="SectionTransporterPanelSrc" Title="SectionTransporter"&amp;gt;
				&amp;lt;local:NWRibbonButton x:Uid="BtSt" Id="BtSt" Size="Large" ShowText="False" Orientation="Horizontal"/&amp;gt;
            &amp;lt;/RibbonPanelSource&amp;gt;
        &amp;lt;/RibbonPanel&amp;gt;
        &amp;lt;RibbonPanel x:Uid="NWFixUnitsPanel"&amp;gt;
	    &amp;lt;RibbonPanelSource x:Uid="NWFixUnitsPanelSrc" Title="Units"&amp;gt;
				&amp;lt;local:NWRibbonButton x:Uid="(@nw)NWFixUnits.ADSK.FixUnits" Id="(@nw)NWFixUnits.ADSK.FixUnits" Size="Large" ShowText="True" Orientation="Vertical"/&amp;gt;
            &amp;lt;/RibbonPanelSource&amp;gt;
        &amp;lt;/RibbonPanel&amp;gt;
    &amp;lt;/RibbonTab&amp;gt;
&amp;lt;/RibbonControl&amp;gt;&lt;/PRE&gt;&lt;P&gt;and here's my PlugIn Attributes:&lt;/P&gt;&lt;PRE&gt;    [RibbonLayout("NWFixUnits.xaml")]
    [RibbonTab("PclTab", DisplayName = "PCL-Units")]
    [Plugin("NWFixUnits", "ADSK", DisplayName = "NWFixUnits", ToolTip = "Fix Merged Model Units")]
    [Command("FixUnits", CanToggle = false, DisplayName = "Fix Units", LargeIcon = "Icon_NW-FixUnits-32.png", ToolTip = "Fix Merged Model Units")]&lt;/PRE&gt;&lt;P&gt;The XAML file is from a plugin called "SectionTransporter" so it's named for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I had both ribbons, the icon displayed. &amp;nbsp;I put the icon in both sub-folders but it won't display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 18:51:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5762217#M5896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T18:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Same Tab with Different Plugins</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5762841#M5897</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'll need to define the icon in the ribbon xaml in this case, using the path that is appropriate for your plugins:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	    &amp;lt;RibbonPanelSource x:Uid="NWFixUnitsPanelSrc" Title="Units"&amp;gt;
				&amp;lt;local:NWRibbonButton x:Uid="(@nw)NWFixUnits.ADSK.FixUnits" &lt;BR /&gt;                                                      Id="(@nw)NWFixUnits.ADSK.FixUnits" &lt;BR /&gt;                                                      Size="Large"&lt;BR /&gt;&amp;nbsp;                                                     Image="pack://siteOfOrigin:,,,/Images/YourSmallImage_16.png"&lt;BR /&gt;                                                      LargeImage="pack://siteOfOrigin:,,,/Images/YourLargeImage_32.png"&lt;BR /&gt;                                                      ShowText="True" &lt;BR /&gt;                                                      Orientation="Vertical"/&amp;gt;
            &amp;lt;/RibbonPanelSource&amp;gt;&lt;/PRE&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2015 15:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/use-same-tab-with-different-plugins/m-p/5762841#M5897</guid>
      <dc:creator>susan_tate</dc:creator>
      <dc:date>2015-08-08T15:36:25Z</dc:date>
    </item>
  </channel>
</rss>

