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

Add new Ribbon Tab in AutoCAD-2011 Ribbon using C++

2 REPLIES 2
Reply
Message 1 of 3
vasantpadhiyar71
1897 Views, 2 Replies

Add new Ribbon Tab in AutoCAD-2011 Ribbon using C++

Hello Experts,

 

I want to Add a custom ribbon on  AutoCAD-2011 Ribbon using Object ARX C++. 

And also I wants to use similar API of "Autodesk.AutoCAD.ApplicationServices" in C++ instead of .Net API

How can I do??

 

Thanks-

Vasant PADHIYAR
2 REPLIES 2
Message 2 of 3

Hi Vasant,

 

This answers your query :

http://forums.autodesk.com/t5/Autodesk-ObjectARX/Ribbon-in-VC/td-p/3677254



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Hi Vasant,

 

You can load a CUIX file via the acedLoadPartialMenu function. In ObjectARX 2012 this function is declared in aced.h. The declaration isn't there in ObjectARX 2011 but the export is actually provided by acad.lib and acad.exe. You'll just need to declare the function yourself:

 

/* Loads a partial menu file.
* Returns true if partial menu is successfully loaded.
*/
bool acedLoadPartialMenu(const TCHAR* pszMenuFile);

 

I haven't tested this in AutoCAD 2011 but I know it does work in 2014.

 

There is also an acedUnloadPartialMenu function you might find useful:

 

/* Unloads a partial menu file.
* Returns true if partial menu is successfully unloaded.
*/
bool acedUnloadPartialMenu(const TCHAR* pszMenuFile);

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

Post to forums  

Autodesk Design & Make Report

”Boost