OccurrenceList.item Method

Parent Object: OccurrenceList
Defined in namespace "adsk::fusion" and the header file is <Fusion/Components/OccurrenceList.h>

Description

Returns the specified occurrence using an index into the collection.

Syntax

"occurrenceList_var" is a variable referencing an OccurrenceList object.
returnValue = occurrenceList_var.item(index)
"occurrenceList_var" is a variable referencing an OccurrenceList object.

#include <Fusion/Components/OccurrenceList.h>

returnValue = occurrenceList_var->item(index);

Return Value

Type Description
Occurrence Returns the specified occurrence or null in the case of an invalid index.

Parameters

Name Type Description
index uinteger The index of the occurrence within the collection to return. The first item has an index of 0.

Samples

Name Description
Assembly traversal using recursion API Sample Traverses the entire structure of the currently open assemlby using a recursive function and displays the result in a message box. This will match the occurrence structure seen in the browser.
Get Volume of Active Design API Sample Traverses through the active design and totals the volume of every body within the design.

Version

Introduced in version August 2014