Component.occurrencesByComponent Method

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

Description

Returns all occurrences at the top-level of this component that reference the specified component. The returned list is read-only.

Syntax

"component_var" is a variable referencing a Component object.
returnValue = component_var.occurrencesByComponent(component)
"component_var" is a variable referencing a Component object.

#include <Fusion/Components/Component.h>

returnValue = component_var->occurrencesByComponent(component);

Return Value

Type Description
OccurrenceList The occurrences referenced by the specified component.

Parameters

Name Type Description
component Component The component that is being referenced by the occurrences that will be returned.

Version

Introduced in version August 2014