Canvas.createForAssemblyContext Method

Parent Object: Canvas
Defined in namespace "adsk::fusion" and the header file is <Fusion/Image/Canvas.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.

Syntax

"canvas_var" is a variable referencing a Canvas object.
returnValue = canvas_var.createForAssemblyContext(occurrence)
"canvas_var" is a variable referencing a Canvas object.

#include <Fusion/Image/Canvas.h>

returnValue = canvas_var->createForAssemblyContext(occurrence);

Return Value

Type Description
Canvas Returns the proxy object or null if this isn't the NativeObject.

Parameters

Name Type Description
occurrence Occurrence The occurrence that defines the context to create the proxy in.

Version

Introduced in version May 2023