Joints.createInput Method

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

Description

Creates a JointInput object, which is the API equivalent to the Joint command dialog. You you use methods and properties on the returned class to set the desired options, similar to providing input and setting options in the Joint command dialog. Once the settings are defined you call the Joints.add method passing in the JointInput object to create the actual joint.

Syntax

"joints_var" is a variable referencing a Joints object.

returnValue = joints_var.createInput(geometryOrOriginOne, geometryOrOriginTwo)
"joints_var" is a variable referencing a Joints object.

#include <Fusion/Components/Joints.h>

returnValue = joints_var->createInput(geometryOrOriginOne, geometryOrOriginTwo);
"joints_var" is a variable referencing a Joints object.

returnValue = joints_var.createInput(geometryOrOriginOne, geometryOrOriginTwo);

Return Value

Type Description
JointInput Returns the JointInput object or null if the creation failed.

Parameters

Name Type Description
geometryOrOriginOne Base A JointGeometry or JointOrigin object that defines the first set of geometry of the joint. JointGeometry objects are created by using the various static methods on the JointGeometry class and JointOrigin objects are created through the JointOrigins object.
geometryOrOriginTwo Base A JointGeometry or JointOrigin object that defines the second set of geometry of the joint. JointGeometry objects are created by using the various static methods on the JointGeometry class and JointOrigin objects are created through the JointOrigins object.

Samples

Name Description
BallJointMotion API Sample

Demonstrates creating a joint with ball joint motion.

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

CylindricalJointMotion API Sample

Demonstrates creating a joint with cylindrical joint motion.

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

Joint API Sample

Demonstrates creating a new joint.

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

Pin Slot Joint Motion API Sample

Demonstrates creating a joint with pin slot joint motion.

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

Planar Joint Motion API Sample

Demonstrates creating a joint with planar joint motion.

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

RevoluteJointMotion API Sample

Demonstrates creating a joint with revolute joint motion.

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

SliderJointMotion API Sample

Demonstrates creating a joint with slider joint motion.

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