Operations.item Method

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

Description

Function that returns the specified operation using an index into the collection.

Syntax

"operations_var" is a variable referencing an Operations object.

returnValue = operations_var.item(index)
"operations_var" is a variable referencing an Operations object.

#include <Cam/Operations/Operations.h>

returnValue = operations_var->item(index);
"operations_var" is a variable referencing an Operations object.

returnValue = operations_var.item(index);

Return Value

Type Description
Operation Returns the specified item or null if an invalid index was specified.

Parameters

Name Type Description
index uinteger The index of the item within the collection to return. The first item in the collection has an index of 0.

Samples

Name Description
Generate Setup Sheets API Sample

Demonstrates generating the setup sheets for an existing toolpath.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground. Use a design with CAM data as required by the script. Many CAM samples switch to the MANUFACTURE workspace and may need an existing setup or manufacturing model.

Version

Introduced in version January 2016