RectangularPatternFeature.directionTwoEntity Property

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

Description

Gets and sets the second direction entity. This can be a linear edge, construction axis, sketch line or rectangular pattern feature. If a rectangular pattern feature is set, the directionOneEntity and directionTwoEntity properties return the same rectangular pattern feature. This can be null when not entity has been specified to control the second direction. In this case Fusion will compute a default direction which is 90 degrees to the direction one.

To set this property, 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

"rectangularPatternFeature_var" is a variable referencing a RectangularPatternFeature object.

# Get the value of the property.
propertyValue = rectangularPatternFeature_var.directionTwoEntity

# Set the value of the property.
rectangularPatternFeature_var.directionTwoEntity = propertyValue
"rectangularPatternFeature_var" is a variable referencing a RectangularPatternFeature object.
#include <Fusion/Features/RectangularPatternFeature.h>

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

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

Property Value

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

Version

Introduced in version November 2014