DraftFeatures.createInput Method

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

Description

Creates a DraftFeatureInput object. Use properties and methods on this object to define the draft you want to create and then use the Add method, passing in the DraftFeatureInput object.

Syntax

"draftFeatures_var" is a variable referencing a DraftFeatures object.

# Uses no optional arguments.
returnValue = draftFeatures_var.createInput(inputFaces, plane)

# Uses optional arguments.
returnValue = draftFeatures_var.createInput(inputFaces, plane, isTangentChain)
"draftFeatures_var" is a variable referencing a DraftFeatures object.

#include <Fusion/Features/DraftFeatures.h>

// Uses no optional arguments.
returnValue = draftFeatures_var->createInput(inputFaces, plane);

// Uses optional arguments.
returnValue = draftFeatures_var->createInput(inputFaces, plane, isTangentChain);
"draftFeatures_var" is a variable referencing a DraftFeatures object.

// Uses no optional arguments.
returnValue = draftFeatures_var.createInput(inputFaces, plane);

// Uses Optional arguments.
returnValue = draftFeatures_var.createInput(inputFaces, plane, isTangentChain);

Return Value

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

Parameters

Name Type Description
inputFaces BRepFace[] BRepFace array that contains the faces to which draft will be applied. The picked point on face is always the point returned from pointOnFace property of the first BRepFace in this collection.
plane Base Input object that defines the direction in which the draft is applied. This can be a planar BrepFace, or a ConstructionPlane.
isTangentChain boolean A boolean value for setting whether or not faces that are tangentially connected to any of the input faces (if any) will also be included. It defaults to true.

This is an optional argument whose default value is True.

Samples

Name Description
Draft Feature API Sample

Demonstrates creating a new draft feature.

Before running: Run in the DESIGN workspace from Scripts and Add-Ins (Python, C++, or TypeScript), unless the script states otherwise.

Version

Introduced in version January 2015