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-
Hi Vasant,
This answers your query :
http://forums.autodesk.com/t5/Autodesk-ObjectARX/Ribbon-in-VC/td-p/3677254
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);