ScratchPolygonSelections.remove Method

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

Description

Function that removes the specified scratch polygon selection object using an index in the collection.

Syntax

"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

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

#include <Cam/GeometrySelections/ScratchPolygonSelections.h>

scratchPolygonSelections_var->remove(index);
"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

 = scratchPolygonSelections_var.remove(index);

Parameters

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

Version

Introduced in version July 2026