DraftFeatures.add Method

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

Description

Creates a new draft feature.

Syntax

"draftFeatures_var" is a variable referencing a DraftFeatures object.

returnValue = draftFeatures_var.add(input)
"draftFeatures_var" is a variable referencing a DraftFeatures object.

#include <Fusion/Features/DraftFeatures.h>

returnValue = draftFeatures_var->add(input);
"draftFeatures_var" is a variable referencing a DraftFeatures object.

returnValue = draftFeatures_var.add(input);

Return Value

Type Description
DraftFeature Returns the newly created DraftFeature object or null if the creation failed.

Parameters

Name Type Description
input DraftFeatureInput A DraftFeatureInput object that defines the desired draft. Use the createInput method to create a new DraftFeatureInput object and then use methods on it (the DraftFeatureInput object) to define the draft.

Samples

Name Description
Draft Feature API Sample

Demonstrates creating a new draft feature.

Before running: Run in the DESIGN workspace from Scripts and Add-Ins (Python, C++, or TypeScript), unless the script states otherwise.

Version

Introduced in version January 2015