ExtrudeFeatures.createInput Method

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

Description

Creates a new ExtrudeFeatureInput object that is used to specify the input needed to create a new extrude feature.

Syntax

"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

returnValue = extrudeFeatures_var.createInput(profile, operation)
"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

#include <Fusion/Features/ExtrudeFeatures.h>

returnValue = extrudeFeatures_var->createInput(profile, operation);
"extrudeFeatures_var" is a variable referencing an ExtrudeFeatures object.

returnValue = extrudeFeatures_var.createInput(profile, operation);

Return Value

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

Parameters

Name Type Description
profile Base The profile argument can be a single Profile, a single planar face, a single SketchText object, or an ObjectCollection consisting of multiple profiles, planar faces, and sketch texts. When an ObjectCollection is used all of the profiles, faces, and sketch texts must be co-planar.

To create a surface (non-solid) extrusion, you can use the createOpenProfile and createBRepEdgeProfile methods of the Component object to create an open profile. You also need to set the isSolid property of the returned ExtrudeFeatureInput property to False.
operation FeatureOperations The feature operation to perform.

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.

Patch Feature API Sample

Demonstrates creating a new patch feature.

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