ExtrudeFeatures.add Method

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

Description

Creates a new extrude feature based on the information defined by the provided ExtrudeFeatureInput object. To create a new extrusion use the createInput function to create a new input object and use the methods and properties on that object to define the required input for an extrusion. Once the information is defined on the input object you can pass it to the Add method to create the extrusion.

Syntax

"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

returnValue = extrudeFeatures_var.add(input)
"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

#include <Fusion/Features/ExtrudeFeatures.h>

returnValue = extrudeFeatures_var->add(input);
"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

returnValue = extrudeFeatures_var.add(input);

Return Value

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

Parameters

Name Type Description
input ExtrudeFeatureInput The ExtrudeFeatureInput object that specifies the input needed to create a new extrude feature.

Samples

Name Description
Extrude Feature API Sample

Demonstrates creating a new extrude feature.

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

The script uses the timeline (<code>rollTo</code>) to inspect feature history.

Manage Participant Bodies API Sample

Demonstrates how to manage participant During Cut operation. Same API can be used to manage participants During intersection also.

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

Version

Introduced in version August 2014