Creating a ribbon in C#

Anonymous

Creating a ribbon in C#

Anonymous
Not applicable

I am having trouble finding a way to create a ribbon with c# in my plugin.

0 Likes
Reply
Accepted solutions (1)
1,353 Views
5 Replies
Replies (5)

norman.yuan
Mentor
Mentor

In terms of add custom ribbon menu, always try to use CUIX, most likely partial CUIX. Only do it with code when it is really necessary. 

If you searched this forum, you would have found quite a few discussions on this topic in the last, such as this one:

 

https://forums.autodesk.com/t5/net/custom-menu-and-ribbon-with-code/m-p/10511529#M69850 

 

 

Norman Yuan

Drive CAD With Code

EESignature

Anonymous
Not applicable

Hi, yes I have seen a lot of examples but some of the code isnt working. For example with the link you provided the class RibbonTab can't be found, I can't even get 'using Ribbon.Properties'

 

 I am trying to code with c#.

 

 

0 Likes

norman.yuan
Mentor
Mentor
Accepted solution

You need add references to acwindows.dll and adwidnows.dll into your project (C# or VB.NET, no difference) in order to code ribbon stuff.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

Anonymous
Not applicable

Ah! Thats what it is. Thanks!

0 Likes

vkpunique
Advocate
Advocate

Okay, I am trying to create custom ribbon for my add-in. Regarding your suggestion to use partial cuix loading, I know how to load it manually, but for my add-in, I want custom tab automatically loaded when user install my add-in. Everything must work out of box. Can you give details about this?

0 Likes