Loading custom ribbon DLLs?

Loading custom ribbon DLLs?

Kevin.Bell
Advisor Advisor
1,077 Views
2 Replies
Message 1 of 3

Loading custom ribbon DLLs?

Kevin.Bell
Advisor
Advisor

Hi,

 

I'm very new to the Revit API, and would appriciate a pointer.

 

I've downloaded a custom ribbon example from here:

 

http://redbolts.com/blog/post/2010/04/09/Revit-2011-Custom-Ribbon-Tab.aspx

 

But how to I load it, I thought you just placed it in the addins folder - but that doesn't work.

 

Am i missing something?

 

Cheers.

0 Likes
Accepted solutions (1)
1,078 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

You need to place an addin file, similar to the one below in the Addin folder. 

 

Create a new text document, copy and paste the text below into it you need to modify the following:

 

Assembly: Location of your dll file

AddInId: Get a new ID from here http://www.guidgenerator.com/online-guid-generator.aspx

FullClassName: "dll file name".Class1   Try .Class1 unless you know the class name

 

Then change the extension to .addin

 

The SDK that comes with the Revit installation has a 400pg guide that is good for getting you started.  It should be located with the Revit installation file in \support\SDK

 

Hope that helps.

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<RevitAddIns>

<AddIn Type="Application">

<Name>SampleApplication</Name>

<Assembly>D:\Sample\AddPanel\AddPanel\bin\Debug\AddPanel.dll</Assembly>

<AddInId>604B1052-F742-4951-8576-C261D1993107</AddInId>

<FullClassName>AddPanel.Class1</FullClassName>

 </AddIn>

</RevitAddIns>

Message 3 of 3

Kevin.Bell
Advisor
Advisor

Excellent! Thanks.

0 Likes