Component.createFlatPattern Method

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

Description

Creates a flat pattern of the sheet metal folded body. The isSheetMetal property of the BRepBody object can be used to determine if a particular body can be flattened. Creating a flat pattern will fail if a flat pattern already exists in the component. You can determine if a flat pattern already exists by checking if the flatPattern property returns a FlatPattern object or null.

Syntax

"component_var" is a variable referencing a Component object.
returnValue = component_var.createFlatPattern(stationaryFace)
"component_var" is a variable referencing a Component object.

#include <Fusion/Components/Component.h>

returnValue = component_var->createFlatPattern(stationaryFace);

Return Value

Type Description
FlatPattern Returns the newly created flat pattern.

Parameters

Name Type Description
stationaryFace BRepFace A planar face in the sheet metal body that is on the top or bottom of the part and not an edge face. This face will be positioned on the X-Y plane of the flat pattern and the rest of the model will be flattened relative to this face. The face must exist on a body that is owned by this component.

Version

Introduced in version October 2022