ConstructionPlanes.createInput Method

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

Description

Create a ConstructionPlaneInput object that is in turn used to create a ConstructionPlane.

Syntax

"constructionPlanes_var" is a variable referencing a ConstructionPlanes object.

# Uses no optional arguments.
returnValue = constructionPlanes_var.createInput()

# Uses optional arguments.
returnValue = constructionPlanes_var.createInput(occurrenceForCreation)
"constructionPlanes_var" is a variable referencing a ConstructionPlanes object.

#include <Fusion/Construction/ConstructionPlanes.h>

// Uses no optional arguments.
returnValue = constructionPlanes_var->createInput();

// Uses optional arguments.
returnValue = constructionPlanes_var->createInput(occurrenceForCreation);
"constructionPlanes_var" is a variable referencing a ConstructionPlanes object.

// Uses no optional arguments.
returnValue = constructionPlanes_var.createInput();

// Uses Optional arguments.
returnValue = constructionPlanes_var.createInput(occurrenceForCreation);

Return Value

Type Description
ConstructionPlaneInput Returns a ConstructionPlaneInput object

Parameters

Name Type Description
occurrenceForCreation Occurrence A creation occurrence is needed if the input is in another component AND the construction plane is not in the root component. The occurrenceForCreation is analogous to the active occurrence in the UI.

This is an optional argument whose default value is null.

Samples

Name Description
Construction Plane API Sample

Demonstrates creating construction planes using ConstructionPlaneInput: offset from a profile, angle, tangent, two planes, two edges, three points, three snap points, tangent at a point, and along a path. Also shows reading healthState, errorOrWarningMessage, and renaming planes.

Before running: No open document is required. The script creates a new design, sketches a circle and lines, extrudes a cylinder, then exercises the construction plane APIs on that model. Run from Scripts and Add-Ins (Python/C++/TypeScript) in the DESIGN workspace.

Loft Feature API Sample

Demonstrates creating a new loft feature.

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

Create a User Coordinate System

Demonstrates the creation of a user coordinate system at the end of a selected sketch curve or edge.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground.

Version

Introduced in version August 2014