API Reference > OdEd Classes > OdEdCommandStack Class > OdEdCommandStack Methods > addCommand Method > OdEdCommandStack::addCommand Method (OdEdCommand*)
OdEdCommandStack::addCommand Method (OdEdCommand*)
Syntax
C++
virtual void addCommand(OdEdCommand* pCommand) = 0;
Parameters 
Description 
OdEdCommand* pCommand 
[in] Pointer to the command object. 

Adds the specified command object to this Stack object. 

 

If the group associated with the command does not exist, the group is first created and pushed onto the top of the stack. 

The globalName and localName must be unique within the groupName of this command object.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.