ObjectARX

ObjectARX

Reply
Contributor
vasantpadhiyar71
Posts: 23
Registered: ‎05-25-2012
Message 1 of 3 (709 Views)

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

709 Views, 2 Replies
04-12-2013 07:10 AM

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
ADN Support Specialist
Balaji_Ram
Posts: 749
Registered: ‎03-21-2011
Message 2 of 3 (651 Views)

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

04-17-2013 03:30 AM in reply to: vasantpadhiyar71

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

New Member
mikesandberg
Posts: 1
Registered: ‎08-24-2011
Message 3 of 3 (545 Views)

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

05-28-2013 05:23 PM in reply to: vasantpadhiyar71

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);

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.