Material.copyTo Method

Parent Object: Material
Defined in namespace "adsk::core" and the header file is <Core/Materials/Material.h>

Description

This function is retired. See more information in the 'Remarks' section below.

Copies this material to the specified target.

Remarks

This method has been retired and replaced by the addByCopyMethod on the Materials object.

Syntax

"material_var" is a variable referencing a Material object.
returnValue = material_var.copyTo(target)
"material_var" is a variable referencing a Material object.

#include <Core/Materials/Material.h>

returnValue = material_var->copyTo(target);

Return Value

Type Description
Material Returns the new copy of the material or null if the copy failed.

Parameters

Name Type Description
target Base The target can be a Design or MaterialFavorites object.

Version

Introduced in version August 2014
Retired in version July 2023