RevoluteJointMotion.rotationAxis Property

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

Description

Gets and sets the direction of the axis of rotation. This can be set to XAxisJointDirection, YAxisJointDirection, or ZAxisJointDirection. It can return those three directions and CustomJointDirection. If this returns CustomJointDirection then the customRotationAxisEntity will return an entity that defines the axis. If there is a custom rotation axis defined and this property is set to one of the three standard axes, the custom rotation will be removed and customRotationAxisEntity will return null.

Syntax

"revoluteJointMotion_var" is a variable referencing a RevoluteJointMotion object.

# Get the value of the property.
propertyValue = revoluteJointMotion_var.rotationAxis

# Set the value of the property.
revoluteJointMotion_var.rotationAxis = propertyValue
"revoluteJointMotion_var" is a variable referencing a RevoluteJointMotion object.
#include <Fusion/Components/RevoluteJointMotion.h>

// Get the value of the property.
JointDirections propertyValue = revoluteJointMotion_var->rotationAxis();

// Set the value of the property, where value_var is a JointDirections.
bool returnValue = revoluteJointMotion_var->rotationAxis(value_var);

Property Value

This is a read/write property whose value is a JointDirections.

Version

Introduced in version July 2015