ObjectCollection.clear Method

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

Description

Clears the entire contents of the collection.

Syntax

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

#include <Core/Application/ObjectCollection.h>

returnValue = objectCollection_var->clear();

Return Value

Type Description
boolean Returns true if successful.

Version

Introduced in version August 2014