FlangeFeatures.itemByName Method

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

Description

Function that returns the specified flange feature using the name of the feature.

Syntax

"flangeFeatures_var" is a variable referencing a FlangeFeatures object.

returnValue = flangeFeatures_var.itemByName(name)
"flangeFeatures_var" is a variable referencing a FlangeFeatures object.

#include <Fusion/SheetMetal/FlangeFeatures.h>

returnValue = flangeFeatures_var->itemByName(name);
"flangeFeatures_var" is a variable referencing a FlangeFeatures object.

returnValue = flangeFeatures_var.itemByName(name);

Return Value

Type Description
FlangeFeature Returns the specified item or null if the specified name was not found.

Parameters

Name Type Description
name string The name of the feature within the collection to return. This is the name seen in the timeline.

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 August 2020