sheet_metal_contour_flange
Creates a bent sheet metal contour flange from an open sketch profile that defines the bend line, using the active or specified sheet metal rule for thickness and bend radius.
Instructions
Contour flange: a bent sheet metal body from an open sketch profile (the profile is the bend line shape, the thickness and radius come from the rule).
Recommended order: rule -> contour flange (e.g. an L-shaped open sketch, c05 sketch_draw lines) -> sheet_metal_edge_flange on its outer edges (inspect_query) -> sheet_metal_list_bends / unfold / refold -> sheet_metal_create_flat_pattern -> sheet_metal_export_flat_pattern. Bend along a sketch line is not available in the Fusion API: add bends with edge flanges or draw them into the contour.
Uses the preview Fusion API: when it is missing the tool fails with FUSION_API_ERROR reason=api_unavailable (nothing changed) - check sheet_metal_capabilities first.
Errors: two_sides without distance_two or distance_two with another direction -> INVALID_PARAMS; a failing flange is rolled back and the previous rule restored.
Returns {"feature", "health", "created_bodies": [{ref, type, name, is_sheet_metal}], "modified_bodies", "removed_bodies", "rule"}.
Example: sheet_metal_contour_flange(profiles=["", ""], distance=40)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | Rule name to make the component's active rule first (sheet_metal_list_rules); a library rule is copied into the design. Default: keep the active rule (Fusion uses the library default for the first flange) | |
| units | No | Unit of plain-number lengths (default mm) | mm |
| distance | Yes | Flange length along the sketch normal | |
| profiles | Yes | Open sketch curves (e.g. an L of two lines), edges or open profile refs; connected curves are chained | |
| direction | No | one_side (default), symmetric or two_sides (needs distance_two) | one_side |
| operation | No | new_body (default) or new_component | new_body |
| bend_radius | No | Bend radius override (default: the rule's) | |
| orientation | No | Side of the sketch the material grows: side_one (default), side_two, centered | side_one |
| rule_source | No | Where to look for `rule`: design, library or all (design first) | all |
| distance_two | No | Second side length (two_sides only) |