RectangularPatternConstraint.setDirectionTwo Method

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

Description

Sets all of the input required to define the pattern in the second direction.

Syntax

"rectangularPatternConstraint_var" is a variable referencing a RectangularPatternConstraint object.
returnValue = rectangularPatternConstraint_var.setDirectionTwo(directionTwoEntity, quantityTwo, distanceTwo)
"rectangularPatternConstraint_var" is a variable referencing a RectangularPatternConstraint object.

#include <Fusion/Sketch/RectangularPatternConstraint.h>

returnValue = rectangularPatternConstraint_var->setDirectionTwo(directionTwoEntity, quantityTwo, distanceTwo);

Return Value

Type Description
boolean Returns true if it was successful.

Parameters

Name Type Description
directionTwoEntity SketchLine Specifies the SketchLine object used to define the second direction entity.

This argument can be null to indicate that the default second direction is to be used, which is 90 degrees to the first direction.
quantityTwo ValueInput Specifies the number of instances in the second direction.
distanceTwo ValueInput Specifies the distance in the second direction. How this value is used depends on the value of the PatternDistanceType property. If the value is ExtentPatternDistanceType then it defines the total distance of the pattern. If the value is SpacingPatternDistanceType then it defines the distance between each element.

Version

Introduced in version September 2022