Skip to content

COMPONENTS / LATCH-HOOK

Latch Hook

Source-faithful 2 mm sheet-metal keeper from the supplied native SolidCraft model

Built in SolidCraft 0.49.0 17 commands

Model preview

Latch Hook SolidCraft build

Generic matching hook/keeper for the latch. The SCPF model mirrors the supplied native SolidCraft blank and fold history directly: one fixed 2 mm sheet blank with two Ø4.3 mounting holes followed by one R2.1 fold. The native hook source is preserved beside the reconstruction.

Key dimensions: 2 mm sheet; 24 mm mounting width; 15 mm neck width; 2 × Ø4.3 holes at 14 mm pitch; 5 mm edge datum; R2.1; K0.44; 138.76675° fold; 20 mm formed side projection

Open in SolidCraft Web

The editable .sc model is loaded directly from the accepted build branch.

Background

Source and manufacturing intent

This component is reconstructed from the supplied native SolidCraft hook.sc / hook.json pair. Those files are stored under reference/.

The manufacturing history is intentionally identical in structure to the native source: one flat sheet blank, two mounting holes and one sheet fold.

The drawing dimensions 15 mm and 20 mm are not competing values. The 15 mm dimension is the neck width in the top view; 20 mm is the total formed projection in the side view.

The outer contour is no longer inferred from the drawing. Its exact arc and line endpoints come from the supplied native sketch.

Formed hook review

The top view verifies the native blank outline; the side view verifies the source fold.

Top — native R5 lobes, tangent transitions, 15 mm neck and two Ø4.3 holes Top view of the source-faithful latch hook
Side — native R2.1 / 138.76675° formed hook Side view of the source-faithful latch hook

SCPF source

The exact SCPF Python source declared by this build variant.

scpf/model.py
"""Source-faithful native sheet-metal latch hook.

Authoritative references:
- ../reference/hook.sc
- ../reference/hook.json

The supplied SolidCraft source contains exactly three native features:
1. Uitslag haak (sketch)
2. Vlakke plaat 2 mm (sheet base)
3. Haak omvouwen (sheet fold)

This SCPF model mirrors those fixed source coordinates instead of re-deriving
or visually approximating the outline.
"""

from scpf import Hole, Sketch, component


# Exact source geometry from hook.json.
_BEND_ANGLE = 138.7667505744678
_THICKNESS = 2.0
_K_FACTOR = 0.44
_BEND_RADIUS = 2.1

_HOLE_DIAMETER = 4.3
_HOLE_X = 5.0
_HOLE_Y = 7.0

_LOBE_END_X = 7.209449193419511
_LOBE_END_Y = 11.485346615558026
_NECK_START_X = 15.3
_HALF_NECK = 7.5
_BLANK_END_X = 28.14928735268115
_FOLD_X = 15.9


@component(include="*")
class LatchHook:
    def build(self):
        with Sketch(name="Uitslag haak", plane="XY") as blank:
            contour = blank.profile(start=(0.0, 7.0))
            contour.line_to((0.0, -7.0))

            # Native lower R5 lobe.  The following straight segment is tangent
            # to this arc in the supplied source.
            contour.arc_center_to(
                (_LOBE_END_X, -_LOBE_END_Y),
                center=(5.0, -7.0),
                clockwise=False,
            )
            contour.line_to((_NECK_START_X, -_HALF_NECK))
            contour.line_to((_BLANK_END_X, -_HALF_NECK))
            contour.line_to((_BLANK_END_X, _HALF_NECK))
            contour.line_to((_NECK_START_X, _HALF_NECK))
            contour.line_to((_LOBE_END_X, _LOBE_END_Y))

            # Native upper R5 lobe, mirrored from the lower side.
            contour.arc_center_to(
                (0.0, 7.0),
                center=(5.0, 7.0),
                clockwise=False,
            )
            contour.close()

        hook = blank.sheet_metal(
            thickness=_THICKNESS,
            bend_radius=_BEND_RADIUS,
            k_factor=_K_FACTOR,
            rule_name="Haak 2 mm",
        )

        # The native source sketch contains the two Ø4.3 circles at
        # (5, -7) and (5, 7).  Forge expresses those as flat-sheet holes
        # before the fold.
        for y in (-_HOLE_Y, _HOLE_Y):
            hook = hook + Hole(
                d=_HOLE_DIAMETER,
                direction=(0, 0, -1),
            ).at(_HOLE_X, y, _THICKNESS)

        # Exact native fold contract from feature "Haak omvouwen":
        # x=15.9, angle 138.7667505744678°, position=start, stays=left.
        hook = hook.fold(
            line=((15.9, -7.5), (15.9, 7.5)),
            angle=_BEND_ANGLE,
            fixed=(5.0, 0.0, 0.0),
            position="start",
        )

        return hook.with_material(
            "Galvanized steel",
            density_g_cm3=7.85,
            color="#B7BDC2",
        )


LatchHook()
SolidCraft command sequence 17 generated operations · expand to inspect
  1. sheet.manage_rules
    {
       "active": true,
       "bend_radius": 2.1,
       "k_factor": 0.44,
       "name": "Haak 2 mm",
       "thickness": 2
    }
    
  2. sketch.create
    {
       "name": "Uitslag haak",
       "plane": "XY"
    }
    
  3. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             7
          ],
          [
             0,
             -7
          ]
       ]
    }
    
  4. sketch.arc.center_point
    {
       "center": [
          5,
          -7
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          7.209449193419511,
          -11.485346615558026
       ],
       "start": [
          0,
          -7
       ]
    }
    
  5. sketch.line
    {
       "connect": true,
       "points": [
          [
             7.209449193419511,
             -11.485346615558026
          ],
          [
             15.3,
             -7.5
          ]
       ]
    }
    
  6. sketch.line
    {
       "connect": true,
       "points": [
          [
             15.3,
             -7.5
          ],
          [
             28.14928735268115,
             -7.5
          ]
       ]
    }
    
  7. sketch.line
    {
       "connect": true,
       "points": [
          [
             28.14928735268115,
             -7.5
          ],
          [
             28.14928735268115,
             7.5
          ]
       ]
    }
    
  8. sketch.line
    {
       "connect": true,
       "points": [
          [
             28.14928735268115,
             7.5
          ],
          [
             15.3,
             7.5
          ]
       ]
    }
    
  9. sketch.line
    {
       "connect": true,
       "points": [
          [
             15.3,
             7.5
          ],
          [
             7.209449193419511,
             11.485346615558026
          ]
       ]
    }
    
  10. sketch.arc.center_point
    {
       "center": [
          5,
          7
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          0,
          7
       ],
       "start": [
          7.209449193419511,
          11.485346615558026
       ]
    }
    
  11. sketch.finish
  12. sheet.flange
    {
       "body_name": "LatchHook",
       "rule": "Haak 2 mm",
       "sketch": "Uitslag haak",
       "type": "base"
    }
    
  13. solid.hole
    {
       "diameter": 4.3,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          5,
          -7,
          2
       ],
       "targets": [
          "LatchHook"
       ]
    }
    
  14. solid.hole
    {
       "diameter": 4.3,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          5,
          7,
          2
       ],
       "targets": [
          "LatchHook"
       ]
    }
    
  15. sheet.fold
    {
       "angle": 138.7667505744678,
       "body": "LatchHook",
       "fixed": [
          5,
          0,
          0
       ],
       "flip": false,
       "points": [
          [
             15.9,
             -7.5,
             0
          ],
          [
             15.9,
             7.5,
             0
          ]
       ],
       "position": "start"
    }
    
  16. material.create
    {
       "color": "#B7BDC2",
       "density_g_cm3": 7.85,
       "name": "Galvanized steel"
    }
    
  17. material.assign
    {
       "bodies": [
          "LatchHook"
       ],
       "material": "Galvanized steel"
    }
    

Build information

Build scope
main
Build variant
latch-hook
Physical owner
latch-hook
Built source
1f2fdb32d67d9af42779500c949f2900ee59c7ae
Forge
v0.23.0 ·
SolidCraft
0.49.0
Runtime
ghcr.io/brainboxemb/cad-solidcraft:v0.3.6