ScratchPolygonSelections.removeByObject 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 from the collection.

Syntax

"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

 = scratchPolygonSelections_var.removeByObject(selection)
"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

#include <Cam/GeometrySelections/ScratchPolygonSelections.h>

scratchPolygonSelections_var->removeByObject(selection);
"scratchPolygonSelections_var" is a variable referencing a ScratchPolygonSelections object.

 = scratchPolygonSelections_var.removeByObject(selection);

Parameters

Name Type Description
selection ScratchPolygonSelection The item within the collection to remove. Throws an exception if the scratch polygon selection is not part of the given selection.

Version

Introduced in version July 2026