Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdEdCommandStack::lookupCmd Method
Syntax
C++
virtual OdEdCommandPtr lookupCmd(const OdString& commandName, int lookupFlags = kGlobal|kLocal, const OdString& groupName = OdString::kEmpty) = 0;

Returns the OdEdCommand object with the specified name in this Stack object. 

 

Parameters
Description
commandName
[in] Name of the command to find.
lookupFlags
[in] Specified where command lookup is to look.
groupName
[in] Group name.

Returns a SmartPointer to the OdEdCommand object if successful, otherwise a null SmartPointer.

This function searches for command names in the group order on the stack. 

If groupName is specified, only that group will be searched. 

lookupFlags must be a combination of one or more of the following: 

 

Name
Value
Description
kGlobal
0x01
Search global (untranslated) names.
kLocal
0x02
Search local (translated) names.
kSpecifedGroup
0x04
Search in specified group only.
kUndefed
0x08
Indicates whether or not to return commands that are currently marked as undefined.
Copyright © 2002-2022. Open Design Alliance All rights reserved.