TrimFeatures.add Method

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

Description

Creates a new trim feature.

Syntax

"trimFeatures_var" is a variable referencing a TrimFeatures object.

returnValue = trimFeatures_var.add(input)
"trimFeatures_var" is a variable referencing a TrimFeatures object.

#include <Fusion/Features/TrimFeatures.h>

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

returnValue = trimFeatures_var.add(input);

Return Value

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

Parameters

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

Samples

Name Description
Trim Feature API Sample

Demonstrates creating a new trim feature.

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

Version

Introduced in version July 2015