FoundationPartsSheet MetalTab

Tab

The SheetMetalTab node adds a coplanar flat patch — the same thickness as the body — fused onto an existing face. Use it to extend a plate in-plane. The profile is a closed sketch shape; here a 60×40 base grows by a 20×40 tab into one 80×40 plate.

from cadbuildr.foundation import Part, Sketch, Rectangle, Point, show
from cadbuildr.foundation import SheetMetalBaseFlange, SheetMetalTab, SheetMetalToSolid


class SheetMetalTabPart(Part):
    """Tab — add a coplanar flat patch (same thickness) fused onto a face."""

    def __init__(self, thickness=2):
        s = Sketch(self.xy())
        base = SheetMetalBaseFlange(
            profile=Rectangle.from_center_and_sides(s.origin, 60, 40), thickness=thickness
        )
        s2 = Sketch(self.xy())
        patch = Rectangle.from_center_and_sides(Point(s2, 40, 0), 20, 40)
        self.add_operation(SheetMetalToSolid(body=SheetMetalTab(body=base, face=self.xy(), profile=patch)))


show(SheetMetalTabPart())