SweepFeatures.add Method

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

Description

Creates a new sweep feature.

Syntax

"sweepFeatures_var" is a variable referencing a SweepFeatures object.

returnValue = sweepFeatures_var.add(input)
"sweepFeatures_var" is a variable referencing a SweepFeatures object.

#include <Fusion/Features/SweepFeatures.h>

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

returnValue = sweepFeatures_var.add(input);

Return Value

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

Parameters

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

Samples

Name Description
Sweep Feature API Sample

Demonstrates creating a new sweep feature.

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

Sweep with guide rail Feature API Sample

Demonstrates creating a new Sweep feature that uses a guide rail along with a profile.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground. No open document is required; the script creates a new design (or additional documents) as it runs.

Two Rail Sweep Feature API Sample

Demonstrates creating new two rail sweep feature.

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

Version

Introduced in version November 2014