Occurrences.addNewSheetMetalComponent Method

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

Description

Method that creates a new sheet metal component and an occurrence that references it. The new component will have the design's active sheet metal rule applied, which defines the thickness, bend radius, K factor, gap, and relief parameters for sheet metal features. The activeSheetMetalRule property of the resulting component will reflect this rule.

Syntax

"occurrences_var" is a variable referencing an Occurrences object.

returnValue = occurrences_var.addNewSheetMetalComponent(transform)
"occurrences_var" is a variable referencing an Occurrences object.

#include <Fusion/Components/Occurrences.h>

returnValue = occurrences_var->addNewSheetMetalComponent(transform);
"occurrences_var" is a variable referencing an Occurrences object.

returnValue = occurrences_var.addNewSheetMetalComponent(transform);

Return Value

Type Description
Occurrence Returns the newly created occurrence or null if the creation failed.

Parameters

Name Type Description
transform Matrix3D A transform that defines the location for the new occurrence.

Samples

Name Description
Create Sheet Metal Component Sample Demonstrates creating new sheet metal components programmatically, covering both the local case (Occurrences.addNewSheetMetalComponent) and the external / X-Ref case (Occurrences.addNewExternalSheetMetalComponent). Each method takes a SheetMetalRule (picked from the library) and a transform.

Version

Introduced in version September 2026