ContourFlangeFeatureDefinition.profiles Property

Parent Object: ContourFlangeFeatureDefinition

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/SheetMetal/ContourFlangeFeatureDefinition.h>

Description

Gets and sets the array of open profiles that define the shape of the contour flange. The profiles can be in different sketches but must be parallel to one another.

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

"contourFlangeFeatureDefinition_var" is a variable referencing a ContourFlangeFeatureDefinition object.
# Get the value of the property.
propertyValue = contourFlangeFeatureDefinition_var.profiles

# Set the value of the property.
contourFlangeFeatureDefinition_var.profiles = propertyValue
"contourFlangeFeatureDefinition_var" Is a variable referencing a ContourFlangeFeatureDefinition Object.
#include <Fusion/SheetMetal/ContourFlangeFeatureDefinition.h>

// Get the value of the property.
std::vector<Ptr<Profile>> propertyValue = contourFlangeFeatureDefinition_var->profiles();

// Set the value of the property, where value_var is a Profile.
bool returnValue = contourFlangeFeatureDefinition_var->profiles(value_var);
"contourFlangeFeatureDefinition_var" Is a variable referencing a ContourFlangeFeatureDefinition Object.
// Get the value of the property.
propertyValue = contourFlangeFeatureDefinition_var.profiles;

// Set the value of the property.
contourFlangeFeatureDefinition_var.profiles = propertyValue;

Property Value

This is a read/write property whose value is an array of type Profile.

Samples

Name Description
Flange Feature Sample

Demonstrates accessing and creating sheet metal flange features including base flange, contour flange, and edge flange.

To run the sample script, have a design open in Fusion's DESIGN workspace that contains a sheet metal body in the root component. The body must have at least one linear edge on its outside that is valid for a flange. A design created with the Sheet Metal > Create > Flange commands, or any design containing a base flange, satisfies this.

The script first iterates over any flange features that already exist in the design and reads the settings from each definition, so the reading portion reports nothing if the design has no flanges yet. It then finds the first linear edge on the first body in the root component and uses it to create a new edge flange feature. Reading the edges back from the created feature requires rolling the timeline marker to immediately before the feature, which the script does using TimelineObject.rollTo.

Version

Introduced in version October 2026