FoundationPartsSheet MetalForming Features

Forming Features

Forming features press shapes into the sheet. Sketch their position on a flange face; they rise along the sketch normal.

NodeFeature
SheetMetalDimple(body, center, radius, depth)a hollow spherical dimple
SheetMetalExtrudedHole(body, center, radius, height)a hole drawn up into a collar (flanged hole, e.g. for tapping thin sheet)
SheetMetalBead(body, path, radius)a half-round stiffening ridge along a line, with rounded ends

In the flat pattern, an extruded hole is the smaller pre-form hole it is drawn from. Dimples and beads keep the plain sheet.

Stock gauges. The panel above is 16-gauge 5052 aluminium: sheet_thickness("aluminum_5052", 16) returns 1.291 mm from the stock tables in MATERIALS. material="aluminum_5052" records the stock on the base flange in the DAG, for BOMs and flat-pattern exports.

from cadbuildr.foundation import (
    Line,
    Part,
    Point,
    Rectangle,
    SheetMetalBaseFlange,
    SheetMetalBead,
    SheetMetalDimple,
    SheetMetalExtrudedHole,
    SheetMetalToSolid,
    Sketch,
    sheet_thickness,
    show,
)


class FormedPanel(Part):
    """Forming features on a 16-gauge aluminium panel: a dimple, an extruded
    (flanged) hole and a stiffening bead, all formed up from the top face."""

    def __init__(self, length=120, width=60):
        t = sheet_thickness("aluminum_5052", 16)
        s = Sketch(self.xy())
        body = SheetMetalBaseFlange(
            profile=Rectangle.from_center_and_sides(s.origin, length, width),
            thickness=t,
            material="aluminum_5052",
        )
        top = Sketch(self.xy().get_parallel_plane(t))
        body = SheetMetalDimple(
            body=body, center=Point(top, -35, 0), radius=12, depth=5
        )
        body = SheetMetalExtrudedHole(
            body=body, center=Point(top, 0, 0), radius=8, height=6
        )
        body = SheetMetalBead(
            body=body, path=Line(Point(top, 25, -18), Point(top, 45, 18)), radius=4
        )
        self.add_operation(SheetMetalToSolid(body=body))
        self.paint("light_bluish_gray")


show(FormedPanel())