SliderJointMotion.customSlideDirectionEntity Property

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

Description

This property can be set using various types of entities that can infer a direction. For example, a linear edge, sketch line, planar face, and cylindrical face. This property is only valid in the case where the slideDirection property returns CustomJointDirection. Setting this property will automatically set the slideDirection property to CustomJointDirection.

To set this property, you need to position the timeline marker to immediately before this joint. This can be accomplished using the following code: thisJoint.timelineObject.rollTo(True)

Syntax

"sliderJointMotion_var" is a variable referencing a SliderJointMotion object.

# Get the value of the property.
propertyValue = sliderJointMotion_var.customSlideDirectionEntity

# Set the value of the property.
sliderJointMotion_var.customSlideDirectionEntity = propertyValue
"sliderJointMotion_var" is a variable referencing a SliderJointMotion object.
#include <Fusion/Components/SliderJointMotion.h>

// Get the value of the property.
Ptr<Base> propertyValue = sliderJointMotion_var->customSlideDirectionEntity();

// Set the value of the property, where value_var is a Base.
bool returnValue = sliderJointMotion_var->customSlideDirectionEntity(value_var);

Property Value

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

Version

Introduced in version July 2015