Static
DEFAUT_The name of the default user command group
Static
SYSTEMT_The name of the system command group
Static
instanceGets the singleton instance of the command stack. Creates a new instance if one doesn't exist.
The singleton instance of AcEdCommandStack
Adds a command to the specified command group.
The name of the command group. If empty, uses the default group.
The global (untranslated) name of the command. Must be unique within the group.
The local (translated) name of the command. Defaults to global name if empty.
The command object to add to the stack.
Return an iterator that can be used to traverse all of command objects in this command stack (that is, the iterator iterates through all commands in all groups).
Return an iterator that can be used to traverse all of command objects in this command stack.
Search through all of the global and untranslated names in all of the command groups in the command stack starting at the top of the stack trying to find a match with cmdName. If a match is found, the matched AcEdCommand object is returned. Otherwise undefined is returned to indicate that the command could not be found. If more than one command of the same name is present in the command stack (that is, in separate command groups), then the first one found is used.
Input the command name to search for
Return the matched AcEdCommand object if a match is found. Otherwise, return undefined.
Search through all of the local and translated names in all of the command groups in the command stack starting at the top of the stack trying to find a match with cmdName. If a match is found, the matched AcEdCommand object is returned. Otherwise undefined is returned to indicate that the command could not be found. If more than one command of the same name is present in the command stack (that is, in separate command groups), then the first one found is used.
Input the command name to search for
Return the matched AcEdCommand object if a match is found. Otherwise, return undefined.
Remove the command with the global and untranslated name cmdGlobalName
from the cmdGroupName
command group. Return true if successful. Return false if no command with the global and untranslated
name cmdGlobalName
is found in the cmdGroupName
command group.
Input the name of the command group containing the command to be removed
Input the command name which is to be removed from cmdGroupName
Return true if successful. Return false if no command with the global and untranslated
name cmdGlobalName
is found in the cmdGroupName
command group.
Remove the command group with the name GroupName
from the command stack and delete the command group
dictionary object and all the AcEdCommand objects stored within it.
Input the name of the command group to be removed from the command stack.
Return true if successful. Return false if no command group is found with the name GroupName
.
The class to create, define, and register command objects.
This is a singleton class that manages all command registration and lookup functionality. Commands are organized into groups, with system commands (ACAD) and user commands (USER) being the default groups.
Example