Occurrence.sourceComponent Property

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

Description

This is the sourceComponent for the occurrence and is affected by the assembly context. This is the top-level component where the path begins.

Syntax

"occurrence_var" is a variable referencing an Occurrence object.

# Get the value of the property.
propertyValue = occurrence_var.sourceComponent
"occurrence_var" is a variable referencing an Occurrence object.
#include <Fusion/Components/Occurrence.h>

// Get the value of the property.
Ptr<Component> propertyValue = occurrence_var->sourceComponent();

Property Value

This is a read only property whose value is a Component.

Version

Introduced in version August 2014