Component.allOccurrencesByComponent Method

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

Description

Returns all occurrences, at any level of the assembly, that reference the specified component. The returned list is read-only.

Syntax

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

#include <Fusion/Components/Component.h>

returnValue = component_var->allOccurrencesByComponent(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.

Samples

Name Description
Delete Empty Components Deletes empty components from the active design.

Version

Introduced in version August 2014