MachineElements.itemById Method
Parent Object:
MachineElementsDefined in namespace "adsk::cam" and the header file is <Cam/Machine/MachineElements.h>
Description
Gets an element of a specific type by ID.
Syntax
"machineElements_var" is a variable referencing a MachineElements object.returnValue = machineElements_var.itemById(typeId, elementId)
|
"machineElements_var" is a variable referencing a MachineElements object.
#include <Cam/Machine/MachineElements.h>
returnValue = machineElements_var->itemById(typeId, elementId);
|
Return Value
MachineElement |
Returns an element of the desired type with the specified ID or null in the case where no match is found. |
Parameters
typeId |
string |
Element typeId to filter. See staticTypeId for the desired element type. |
elementId |
string |
Element ID to select. |
Version
Introduced in version April 2023