.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating a ribbon in C#

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
1350 Views, 5 Replies

Creating a ribbon in C#

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

5 REPLIES 5
Message 2 of 6
norman.yuan
in reply to: Anonymous

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

Message 3 of 6
Anonymous
in reply to: norman.yuan

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#.

 

 

Message 4 of 6
norman.yuan
in reply to: Anonymous

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

Message 5 of 6
Anonymous
in reply to: norman.yuan

Ah! Thats what it is. Thanks!

Message 6 of 6
vkpunique
in reply to: norman.yuan

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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report