MachineElements.defaultItemByType Method
Parent Object:
MachineElementsDefined in namespace "adsk::cam" and the header file is <Cam/Machine/MachineElements.h>
Description
Returns the default item of the given type. In most cases this will be the element with an element ID of "default".
Syntax
"machineElements_var" is a variable referencing a MachineElements object.returnValue = machineElements_var.defaultItemByType(typeId)
|
"machineElements_var" is a variable referencing a MachineElements object.
#include <Cam/Machine/MachineElements.h>
returnValue = machineElements_var->defaultItemByType(typeId);
|
Return Value
MachineElement |
Returns the specified Element or null if no matching type ID is found. |
Parameters
typeId |
string |
Element typeId to get the default for. See staticTypeId for the desired element type. |
Version
Introduced in version April 2023