In BricsCAD all you need to do is:
Application.IsMenuGroupLoaded("xxx")
But the IsMenuGroupLoaded method is not available for AutoCAD nor ZWCAD.
At the moment I am using COM for the other two CAD application. Eg:
var AXAPP = (_AxApp.AcadApplication)_AcAp.Application.AcadApplication; // COM
for (int iMenuGroup = 0; iMenuGroup < AXAPP.MenuGroups.Count - 0; iMenuGroup++)
{
if (AXAPP.MenuGroups.Item(iMenuGroup).Name == "xxx")
{
_AcAp.Application.ShowAlertDialog("The ribbon is already loaded.");
bLoadCUI = false;
break;
}
}
Does AutoCAD and ZWCAD have a simpler solution like IsMenuGroupLoaded?