DraftAnalyses.createInput Method

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

Description

Creates a new DraftAnalysisInput object to use when creating a new Draft analysis. A DraftAnalysisInput object is the API equivalent of the command dialog that contains the inputs to create a draft analysis. Use this object to define the settings you need and then pass this into the add method to create the analysis.

Syntax

"draftAnalyses_var" is a variable referencing a DraftAnalyses object.

returnValue = draftAnalyses_var.createInput(inputEntities, directionEntity)
"draftAnalyses_var" is a variable referencing a DraftAnalyses object.

#include <Fusion/Fusion/DraftAnalyses.h>

returnValue = draftAnalyses_var->createInput(inputEntities, directionEntity);
"draftAnalyses_var" is a variable referencing a DraftAnalyses object.

returnValue = draftAnalyses_var.createInput(inputEntities, directionEntity);

Return Value

Type Description
DraftAnalysisInput Returns a DraftAnalysisInput object if successful.

Parameters

Name Type Description
inputEntities Base[] An array containing the entities to analyze. Valid entities are solid and surface BRepBody objects, T-Spline surface bodies, and mesh bodies.
directionEntity Base The entity that defines the pull direction used by the analysis. Valid entities are a planar, cylindrical, or conical BRepFace, a linear BRepEdge, a ConstructionPlane, or a ConstructionAxis.

Version

Introduced in version October 2026