MachineParts.itemById Method
Parent Object:
MachinePartsDefined in namespace "adsk::cam" and the header file is <Cam/Machine/MachineParts.h>
Description
Get the part with the given ID.
Syntax
"machineParts_var" is a variable referencing a MachineParts object.returnValue = machineParts_var.itemById(id)
|
"machineParts_var" is a variable referencing a MachineParts object.
#include <Cam/Machine/MachineParts.h>
returnValue = machineParts_var->itemById(id);
|
Return Value
MachinePart |
Returns the MachinePart with the given ID, or null if the given ID does not match any part in the collection. |
Parameters
id |
string |
The ID for the part to get. |
Version
Introduced in version April 2023