RevolveFeature.axis Property

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

Description

Gets and sets the entity used to define the axis of revolution. The axis can be a sketch line, construction axis, linear edge or a face that defines an axis (cylinder, cone, torus, etc.). If it is not in the same plane as the profile, it is projected onto the profile plane.

To use 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

"revolveFeature_var" is a variable referencing a RevolveFeature object.

# Get the value of the property.
propertyValue = revolveFeature_var.axis

# Set the value of the property.
revolveFeature_var.axis = propertyValue
"revolveFeature_var" is a variable referencing a RevolveFeature object.
#include <Fusion/Features/RevolveFeature.h>

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

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

Property Value

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

Version

Introduced in version August 2014