
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I´m trying to make a ribbon and the botton must call a DLL.
I want to make one dll with the all my Tabs and Ribbon witch are going to call the other DLLs
The tab and the panel with the picture works fine, but I can´t call the DLL !!
In the addin file, I have the same information to call the DLL and the FullClassName:
<Assembly>C:\ProgramData\Autodesk\Revit\Plugins\2015\BBR_Beregning.dll</Assembly>
<FullClassName>BBR_Beregning.BBR_Beregning</FullClassName>
namespace Revit_Ribbon
{
class AA_Ribbon : IExternalApplication
{
public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application)
{
string Panel_AA = "Aarstiderne";
application.CreateRibbonTab(Panel_AA);
RibbonPanel ribbonPanel = application.CreateRibbonPanel(Panel_AA, "ArealBeregning");
PushButtonData pushButtonDataAA = new PushButtonData("BBR", "BBR", @"C:\ProgramData\Autodesk\Revit\Plugins\2015\BBR.dll", "BBR_Beregning.BBR_Beregning");
pushButtonDataAA.AvailabilityClassName = "BBR_Beregning.BBR_Beregning";
pushButtonDataAA.ToolTip = " Aarstiderne BBR beregning";
Uri urisource = new Uri(@"C:\ProgramData\Autodesk\Revit\Plugins\2015\Pictures\BBR.png");
pushButtonDataAA.LargeImage = new BitmapImage(urisource);
ribbonPanel.AddItem(pushButtonDataAA);
return Result.Succeeded;
}
public Autodesk.Revit.UI.Result OnShutdown(UIControlledApplication application)
{
return Result.Succeeded;
}
}
}
Please Help 🙂
Regards
Anders
Solved! Go to Solution.