ObjectCollection.asArray Method

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

Description

Returns the content of the ObjectCollection as an array.

Syntax

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

#include <Core/Application/ObjectCollection.h>

returnValue = objectCollection_var->asArray();

Return Value

Type Description
Base[] Returns an array of the Fusion objects in the ObjectCollection.

Version

Introduced in version May 2023