RevolveFeature.profile Property

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

Description

Gets and sets the profiles or planar faces used to define the shape of the revolve. This property can return or be set with a single Profile, a single planar face, or an ObjectCollection consisting of multiple profiles and planar faces. When an ObjectCollection is used all of the profiles and faces must be co-planar.

When setting this property of a surface (non-solid) extrusion, you can use the createOpenProfile and createBRepEdgeProfile methods of the Component object to create an open profile.

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)

This property returns null in the case where the feature is non-parametric.

Syntax

"revolveFeature_var" is a variable referencing a RevolveFeature object.

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

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

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

Property Value

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

Version

Introduced in version August 2014