Occurrences.addFromConfiguration Method

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

Description

Method that inserts a configuration from a configured design. The insert will fail if the configured design being used is not from the same project as the file it is being inserted into.

Syntax

"occurrences_var" is a variable referencing an Occurrences object.
returnValue = occurrences_var.addFromConfiguration(configurationRow, transform)
"occurrences_var" is a variable referencing an Occurrences object.

#include <Fusion/Components/Occurrences.h>

returnValue = occurrences_var->addFromConfiguration(configurationRow, transform);

Return Value

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

Parameters

Name Type Description
configurationRow ConfigurationRow The row that specifies which configuration to use.
transform Matrix3D A transform that defines the location for the new occurrence.

Version

Introduced in version January 2024