MeshBody.copyToComponent Method

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

Description

Creates a copy of this mesh body into the specified target.

Syntax

"meshBody_var" is a variable referencing a MeshBody object.

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

#include <Fusion/MeshBody/MeshBody.h>

returnValue = meshBody_var->copyToComponent(target);
"meshBody_var" is a variable referencing a MeshBody object.

returnValue = meshBody_var.copyToComponent(target);

Return Value

Type Description
MeshBody Returns the moved mesh body or null in the case the move failed.

Parameters

Name Type Description
target Base The target can be either the root component or an occurrence.

In the case where an occurrence is specified, the mesh body will be copied into the parent component of the target occurrence and the target occurrence defines the transform of how the mesh body will be copied so that the body maintains its same position with respect to the assembly.

Version

Introduced in version July 2025