RectangularPatternFeature.directionOneEntity Property

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

Description

Gets and sets the first 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.

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.directionOneEntity

# Set the value of the property.
rectangularPatternFeature_var.directionOneEntity = 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->directionOneEntity();

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

Property Value

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

Version

Introduced in version November 2014