Occurrences.addNewComponent Method

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

Description

Method that creates a new component and an occurrence that references it.

Syntax

"occurrences_var" is a variable referencing an Occurrences object.
returnValue = occurrences_var.addNewComponent(transform)
"occurrences_var" is a variable referencing an Occurrences object.

#include <Fusion/Components/Occurrences.h>

returnValue = occurrences_var->addNewComponent(transform);

Return Value

Type Description
Occurrence Returns the newly created occurrence or null if the creation failed.

Parameters

Name Type Description
transform Matrix3D A transform that defines the location for the new occurrence.

Samples

Name Description
Component Sample Component related functions

Version

Introduced in version August 2014