MeshBody.createComponent Method

Parent Object: MeshBody

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/MeshBody/MeshBody.h>

Description

Creates a new component and occurrence within the component that currently owns this body. This body is moved into the new component and returned. The newly created component can be obtained by using the parentComponent property of the MeshBody object.

Syntax

"meshBody_var" is a variable referencing a MeshBody object.
returnValue = meshBody_var.createComponent()
"meshBody_var" is a variable referencing a MeshBody object.

#include <Fusion/MeshBody/MeshBody.h>

returnValue = meshBody_var->createComponent();

Return Value

Type Description
MeshBody Returns the MeshBody in the new component or null in the case the creation failed.

Version

Introduced in version January 2024