API Reference > OdEd Classes > OdEdCommandStack Class > OdEdCommandStack Methods > addCommand Method > OdEdCommandStack::addCommand Method (OdString&, OdString&, OdString&, OdUInt32, OdEdCommandFunction *, OdRxModule *)
OdEdCommandStack::addCommand Method (OdString&, OdString&, OdString&, OdUInt32, OdEdCommandFunction *, OdRxModule *)
Syntax
C++
virtual OdEdCommand* addCommand(const OdString& sGroupName, const OdString& sGlobalName, const OdString& sLocalName, OdUInt32 commandFlags, OdEdCommandFunction * pFunction, OdRxModule * pModule = 0);
Parameters 
Description 
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.