BaseFeatures.add Method

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

Description

Creates a new empty base feature in the parent component.

Syntax

"baseFeatures_var" is a variable referencing a BaseFeatures object.

returnValue = baseFeatures_var.add()
"baseFeatures_var" is a variable referencing a BaseFeatures object.

#include <Fusion/Features/BaseFeatures.h>

returnValue = baseFeatures_var->add();
"baseFeatures_var" is a variable referencing a BaseFeatures object.

returnValue = baseFeatures_var.add();

Return Value

Type Description
BaseFeature Returns the new BaseFeature or null in the case of an error.

Samples

Name Description
BaseFeature Sample

Demonstrates creating a new base feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version May 2016