MoveFeature.redefineAsTranslateXYZ Method

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

Description

Redefines the move feature to be described by a translation in X, Y, and Z.

To use this method, you need to position the timeline marker to immediately before this feature. This can be accomplished using the following code: thisFeature.timelineObject.rollTo(True)

Syntax

"moveFeature_var" is a variable referencing a MoveFeature object.
returnValue = moveFeature_var.redefineAsTranslateXYZ(xDistance, yDistance, zDistance, isDesignSpace)
"moveFeature_var" is a variable referencing a MoveFeature object.

#include <Fusion/Features/MoveFeature.h>

returnValue = moveFeature_var->redefineAsTranslateXYZ(xDistance, yDistance, zDistance, isDesignSpace);

Return Value

Type Description
boolean Returns true if the re-definition is successful.

Parameters

Name Type Description
xDistance ValueInput A ValueInput object that defines the offset in the X direction. If the ValueInput is created using a real value, the distance is in centimeters. If it's defined using a string, the default document units will be used.
yDistance ValueInput A ValueInput object that defines the offset in the Y direction. If the ValueInput is created using a real value, the distance is in centimeters. If it's defined using a string, the default document units will be used.
zDistance ValueInput A ValueInput object that defines the offset in the Z direction. If the ValueInput is created using a real value, the distance is in centimeters. If it's defined using a string, the default document units will be used.
isDesignSpace boolean Defines if the translation is defined with respect to the design or component space. Design space is the same as the root component space.

Version

Introduced in version January 2023