Occurrence.createForAssemblyContext Method

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

Description

Creates or returns a proxy for the native object - i.e. a new object that represents this object but adds the assembly context defined by the input occurrence. Fails if this object is not the NativeObject.

Syntax

"occurrence_var" is a variable referencing an Occurrence object.
returnValue = occurrence_var.createForAssemblyContext(occurrence)
"occurrence_var" is a variable referencing an Occurrence object.

#include <Fusion/Components/Occurrence.h>

returnValue = occurrence_var->createForAssemblyContext(occurrence);

Return Value

Type Description
Occurrence Returns the proxy for the occurrence in the context of the specified occurrence. Returns null if it failed.

Parameters

Name Type Description
occurrence Occurrence The occurrence that represents the context you want to create this proxy in.

Version

Introduced in version August 2014