ScratchPolygonSelections.item Method

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

Description

Function that returns the specified scratch polygon selection object using an index into the collection.

Syntax

"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

returnValue = scratchPolygonSelections_var.item(index)
"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

#include <Cam/GeometrySelections/ScratchPolygonSelections.h>

returnValue = scratchPolygonSelections_var->item(index);
"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

returnValue = scratchPolygonSelections_var.item(index);

Return Value

Type Description
ScratchPolygonSelection 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.

Version

Introduced in version July 2026