C++
#define acedRegCmds \ AcEdCommandStack::cast(acrxSysRegistry()->at(ACRX_COMMAND_DOCK))
File
accmd.h
Description
The acedRegCmds macro provides a pointer to the ObjectARX system AcEdCommandStack object. The command stack object provides methods to manipulate the ObjectARX command stack such as adding and removing commands, removing groups of commands, searching the stack for a command by global or local name, etc.
The actual definition of the macro is as follows.
#define acedRegCmds AcEdCommandStack::cast(acrxSysRegistry()->at(ACRX_COMMAND_DOCK))
An example of this macro's use is:
acedRegCmds->addCommand("CMD_GROUP", "GLOBAL_CMD_NAME", "LOCAL_CMD_NAME", ACRX_CMD_MODAL | ACRX_CMD_USEPICKSET, func1);