Component.allOccurrences Property

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

Description

Returns all of the occurrences in the assembly regardless of their level within the assembly structure. The returned list is read-only.

Syntax

"component_var" is a variable referencing a Component object.

# Get the value of the property.
propertyValue = component_var.allOccurrences
"component_var" is a variable referencing a Component object.
#include <Fusion/Components/Component.h>

// Get the value of the property.
Ptr<OccurrenceList> propertyValue = component_var->allOccurrences();

Property Value

This is a read only property whose value is an OccurrenceList.

Samples

Name Description
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