Occurrence.moveToComponent Method

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

Description

Moves this occurrence from it's current component into the component owned by the specified occurrence. This occurrence and the target occurrence must be in the same context.

Syntax

"occurrence_var" is a variable referencing an Occurrence object.
returnValue = occurrence_var.moveToComponent(targetOccurrence)
"occurrence_var" is a variable referencing an Occurrence object.

#include <Fusion/Components/Occurrence.h>

returnValue = occurrence_var->moveToComponent(targetOccurrence);

Return Value

Type Description
Occurrence Returns the moved Occurrence or null in the case the move failed.

Parameters

Name Type Description
targetOccurrence Occurrence The target occurrence defines both the component and the transform to apply when moving the occurrence. The occurrence will be copied into the parent component of the target occurrence and the target occurrence also defines the transform of how the occurrence will be copied so that the occurrence maintains it's same position in model space.

Version

Introduced in version July 2015