ObjectCollection.removeByItem Method

Parent Object: ObjectCollection
Defined in namespace "adsk::core" and the header file is <Core/Application/ObjectCollection.h>

Description

Function that removes an item from the collection.

Syntax

"objectCollection_var" is a variable referencing an ObjectCollection object.
returnValue = objectCollection_var.removeByItem(item)
"objectCollection_var" is a variable referencing an ObjectCollection object.

#include <Core/Application/ObjectCollection.h>

returnValue = objectCollection_var->removeByItem(item);

Return Value

Type Description
boolean Returns true if the removal was successful.

Parameters

Name Type Description
item Base The object to remove from the collection.

Version

Introduced in version August 2014