Joints.add Method

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

Description

Creates a new joint.

Syntax

"joints_var" is a variable referencing a Joints object.

returnValue = joints_var.add(input)
"joints_var" is a variable referencing a Joints object.

#include <Fusion/Components/Joints.h>

returnValue = joints_var->add(input);
"joints_var" is a variable referencing a Joints object.

returnValue = joints_var.add(input);

Return Value

Type Description
Joint Returns the newly created Joint or null in the case of failure.

Parameters

Name Type Description
input JointInput The JointInput object that defines the geometry and various inputs that fully define a joint. A JointInput object is created using the Joints.createInput method.

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