Decals.add Method

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

Description

Creates a new decal. Use the createInput method to first create an input object and set the available options. Then, pass that input object to the add method to create the decal.

Syntax

"decals_var" is a variable referencing a Decals object.
returnValue = decals_var.add(input)
"decals_var" is a variable referencing a Decals object.

#include <Fusion/Image/Decals.h>

returnValue = decals_var->add(input);

Return Value

Type Description
Decal Returns the newly created Decal object.

Parameters

Name Type Description
input DecalInput The DecalInput object that defines the required information needed to create a new decal.

A DecalInput object is the logical equivalent to the Decal command dialog by providing access to all the decal options. Passing in the DecalInput object to the add method is the equivalent of clicking the OK button on the dialog to create the decal.

Version

Introduced in version September 2024