FoldBendLineDefinitions.add Method

Parent Object: FoldBendLineDefinitions

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/FoldBendLineDefinitions.h>

Description

Adds a bend line definition to this fold feature. To add a bend line, position the timeline marker immediately before the fold feature.

Syntax

"foldBendLineDefinitions_var" is a variable referencing a FoldBendLineDefinitions object.

returnValue = foldBendLineDefinitions_var.add(bendLine, bendAngle, linePosition, allowBendRelief)
"foldBendLineDefinitions_var" is a variable referencing a FoldBendLineDefinitions object.

#include <Fusion/SheetMetal/FoldBendLineDefinitions.h>

returnValue = foldBendLineDefinitions_var->add(bendLine, bendAngle, linePosition, allowBendRelief);
"foldBendLineDefinitions_var" is a variable referencing a FoldBendLineDefinitions object.

returnValue = foldBendLineDefinitions_var.add(bendLine, bendAngle, linePosition, allowBendRelief);

Return Value

Type Description
FoldBendLineDefinition Returns the newly created FoldBendLineDefinition, or null if adding the bend line failed.

Parameters

Name Type Description
bendLine SketchLine The sketch line that defines where the bend is created. The line must lie on a valid sheet metal face.
bendAngle ValueInput The bend angle. Use ValueInput.createByReal for radians or ValueInput.createByString for expressions.
linePosition FoldBendLinePositionTypes The position of the bend line relative to the bend in the flat state (start, center, or end).
allowBendRelief boolean True to allow bend relief at the ends of this bend line.

Version

Introduced in version July 2026