OccurrenceList.itemByName Method

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

Description

Returns the specified occurrence using the name of the occurrence.

Syntax

"occurrenceList_var" is a variable referencing an OccurrenceList object.
returnValue = occurrenceList_var.itemByName(name)
"occurrenceList_var" is a variable referencing an OccurrenceList object.

#include <Fusion/Components/OccurrenceList.h>

returnValue = occurrenceList_var->itemByName(name);

Return Value

Type Description
Occurrence Returns the occurrence or null if an invalid name was specified

Parameters

Name Type Description
name string The name of the occurrence to return.

Version

Introduced in version September 2016