RectangularPatternConstraint.setDirectionOne 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 first direction.

Syntax

"rectangularPatternConstraint_var" is a variable referencing a RectangularPatternConstraint object.
returnValue = rectangularPatternConstraint_var.setDirectionOne(directionOneEntity, quantityOne, distanceOne)
"rectangularPatternConstraint_var" is a variable referencing a RectangularPatternConstraint object.

#include <Fusion/Sketch/RectangularPatternConstraint.h>

returnValue = rectangularPatternConstraint_var->setDirectionOne(directionOneEntity, quantityOne, distanceOne);

Return Value

Type Description
boolean Returns true if it was successful.

Parameters

Name Type Description
directionOneEntity SketchLine Specifies the SketchLine object used to define the first direction entity.

This argument can be null to indicate that the default first direction is to be used, which is along the X axis of the sketch.
quantityOne ValueInput Specifies the number of instances in the first direction.
distanceOne ValueInput Specifies the distance in the first 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