Profile.createForAssemblyContext Method

Parent Object: Profile
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/Profile.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. Returns null if this isn't the NativeObject.

Syntax

"profile_var" is a variable referencing a Profile object.
returnValue = profile_var.createForAssemblyContext(occurrence)
"profile_var" is a variable referencing a Profile object.

#include <Fusion/Sketch/Profile.h>

returnValue = profile_var->createForAssemblyContext(occurrence);

Return Value

Type Description
Profile 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 August 2014