CopyPasteBodies.add Method

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

Description

Copies the specified body into the component that owns this CopyPasteBodies collection.

Syntax

"copyPasteBodies_var" is a variable referencing a CopyPasteBodies object.
returnValue = copyPasteBodies_var.add(sourceBody)
"copyPasteBodies_var" is a variable referencing a CopyPasteBodies object.

#include <Fusion/Features/CopyPasteBodies.h>

returnValue = copyPasteBodies_var->add(sourceBody);

Return Value

Type Description
CopyPasteBody Returns the newly created BRepBody object or null in the case of failure.

Parameters

Name Type Description
sourceBody Base Either an ObjectCollection of BRepBodies or a single BRepBody object to copy.

Version

Introduced in version June 2017