NCPrograms.itemByOperationId Method

Parent Object: NCPrograms
Defined in namespace "adsk::cam" and the header file is <Cam/NCProgram/NCPrograms.h>

Description

Returns the NC program with the specified operation id.

Syntax

"nCPrograms_var" is a variable referencing a NCPrograms object.
returnValue = nCPrograms_var.itemByOperationId(id)
"nCPrograms_var" is a variable referencing a NCPrograms object.

#include <Cam/NCProgram/NCPrograms.h>

returnValue = nCPrograms_var->itemByOperationId(id);

Return Value

Type Description
NCProgram Returns the specified NC program or null in the case where there is no NC program with the specified operation id.

Parameters

Name Type Description
id integer The id of the NC program.

Version

Introduced in version April 2023