Plug In Ribbon tab name

Plug In Ribbon tab name

nicolLSPDR
Explorer Explorer
148 Views
4 Replies
Message 1 of 5

Plug In Ribbon tab name

nicolLSPDR
Explorer
Explorer

I have looked all over the forums and can't seem to find a solution on how to change the default ribbon tab name for plug ins. I have a dll that contains 3 plug in tools and when I import them into Navisworks they appear under Tool add-in 1. I would like to rename this so that it uses my companies name instead however, I'm not sure how to accomplish this. Any help would be great.

0 Likes
Accepted solutions (1)
149 Views
4 Replies
Replies (4)
Message 2 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi,
My suggestion is to create your own ribbon. Please take a look at this link:https://twentytwo.space/2022/02/02/navisworks-api-commandhandlerplugin/ 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

nicolLSPDR
Explorer
Explorer

I tried following this tutorial however I can't build the dll because of errors from my xaml file. 

nicolLSPDR_0-1766001290157.png

 

0 Likes
Message 4 of 5

nicolLSPDR
Explorer
Explorer

This ended up being super helpful. I also used this video from youtube to help but they are essentially the same material. Along with a few typos I found my problem was I was referencing old dlls instead of the new names so now the ribbon tab works. However, the test command I built crashes the program. I'm hoping it's just the quick test I built but I will update if nothing changes. 

 

Here is the xaml text used for those also struggling:

 

<?xml version="1.0" encoding="utf-8" ?>
<RibbonControl
x:Uid="AddinRibbon" 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">
<RibbonTab Id="ID_CustomTab_1" KeyTip="T1">
<RibbonPanel x:Uid="RibbonPanel1">
<RibbonPanelSource x:Uid="RibbonPanelSource_RibbonPanel_1" KeyTip="C1" Title="Tools">
<local:NWRibbonButton x:Uid="Button_1" Id="ID_Button_1"
Size="Large"
KeyTip="B1"
ShowText="True"
Text="Button_1"
Orientation="Vertical"/>
</RibbonPanelSource>
</RibbonPanel>
</RibbonTab>
</RibbonControl>

0 Likes
Message 5 of 5

nicolLSPDR
Explorer
Explorer

Youtube video for reference. https://www.youtube.com/watch?v=fbMz7roQptU

 

The post build portion did not work for me so I added the dll and xaml to the plug ins folder by hand myself (don't forget to add en-US folder and place the xaml in it there as  well).