C++
ACAD_PORT Acad::ErrorStatus acedGetCommandForDocument( const AcApDocument* pDoc, AcString & sCmdName, bool bLocalized = false );
File
aced.h
Description
Gets the global or local name of the innermost current command for the given document.
Parameters
| Parameters | Description |
|---|---|
| pDoc | Pointer to the document whose command is to be queried. |
| sCmdName | Reference to a string object which receives the command name. |
| bLocalized | Selects the global command name if false, localized name if true. |
Returns
Returns Acad::eOk if successful, else eNullPtr or eInvalidInput on errors.
Remarks
The overload taking an ACHAR*& pGlobalCmdName arg and no bLocalized arg is deprecated and will be removed in a future release.