OffsetFeatures.add Method

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

Description

Creates a new offset feature.

Syntax

"offsetFeatures_var" is a variable referencing an OffsetFeatures object.

returnValue = offsetFeatures_var.add(input)
"offsetFeatures_var" is a variable referencing an OffsetFeatures object.

#include <Fusion/Features/OffsetFeatures.h>

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

returnValue = offsetFeatures_var.add(input);

Return Value

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

Parameters

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

Samples

Name Description
Offset Feature API Sample

Demonstrates creating a new offset feature.

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

Version

Introduced in version June 2015