Occurrences.itemByName Method

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

Description

Returns the specified occurrence using the name of the occurrence.

Syntax

"occurrences_var" is a variable referencing an Occurrences object.
returnValue = occurrences_var.itemByName(name)
"occurrences_var" is a variable referencing an Occurrences object.

#include <Fusion/Components/Occurrences.h>

returnValue = occurrences_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 August 2014