ObjectCollection.add Method

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

Description

Adds an object to the end of the collection. Duplicates can be added to the collection.

Syntax

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

#include <Core/Application/ObjectCollection.h>

returnValue = objectCollection_var->add(item);

Return Value

Type Description
boolean Returns false if the item was not added.

Parameters

Name Type Description
item Base The item to add to the list.

Version

Introduced in version August 2014