You can use “AcEdCommandIterator:: commandGroup” API class to identify the group name of the command. Below code shows the procedure to identify the command group name of the “layer” command
AcEdCommand *pCmd = acedRegCmds->lookupCmd(_T("LAYER"), true);
if(pCmd == NULL)
{
acutPrintf(_T("Unable to find the command\n"));
return;
}
AcEdCommandIterator *pCmdItr = acedRegCmds->iterator();
for(;! pCmdItr->done(); pCmdItr->next())
{
if(pCmdItr->command() == pCmd)
{
acutPrintf(_T("layer command belongs to Group : %s\n"),
pCmdItr->commandGroup());
break;
}
}
delete pCmdItr;