Skip to content

COMPONENTS / LATCH

Latch

Source-faithful native sheet-metal over-centre latch

Built in SolidCraft 0.49.0 199 commands

Model preview

Latch SolidCraft build

Generic latch component reconstructed from the original native SolidCraft design. The authoritative source is preserved at reference/latch.sc. The mechanism combines a 2 mm mounting foot, 1.6 mm operating handle, 2 mm pull bail, 0.7 mm locking spring/lip, hinge pins and revolved rivets. The released Forge sheet-metal and revolve primitives reproduce the native feature history without fused-solid approximations.

Key dimensions: 73 mm overall; 43 × 16.5 × 2 mm mounting foot; Ø4.2 mounting holes; 16.5 mm handle; 23.5 mm pull bail; Ø3.8/Ø4 hinge and bail pins

Open in SolidCraft Web

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

Background

Source of truth

The original native SolidCraft file is committed unchanged as reference/latch.sc. A readable reference/latch.json export is stored beside it to make the native parameter and feature history easier to inspect.

This is a generic latch component. Its placement under Display is catalog classification only; the model itself must not be named or coupled as a display-specific latch.

The reconstruction intentionally follows the source sheet-metal history. Do not replace folds, flanges, sheet contours or revolved rivets with fused-solid lookalikes merely to make the model build.

Native latch review

These durable views verify the source-derived sheet folds, pivot geometry and locking spring against the native reference.

Top — handle, pull bail, pivots and mounting foot Top view of the reconstructed latch
Side — sheet folds, hinge axis and locking spring Side view of the reconstructed latch

SCPF source

The exact SCPF Python source declared by this build variant.

scpf/model.py
"""Native reconstruction of the supplied SolidCraft over-centre latch.

The byte-identical source lives in ../reference/latch.sc.  This model keeps the
five physical metal parts separate and reproduces the source sheet-metal,
revolve and cylinder history with released Forge primitives.

World axes follow the native latch document:
    X: latch length
    Y: latch width
    Z: height
"""

from scpf import (
    Anchor,
    Axis,
    Cylinder,
    Hole,
    Placement,
    Sketch,
    component,
)

STEEL = dict(
    material="Galvanized steel",
    density_g_cm3=7.85,
    color="#B7BDC2",
)
SPRING_STEEL = dict(
    material="Spring steel",
    density_g_cm3=7.85,
    color="#9EA5AB",
)


def _steel(shape, *, spring=False):
    props = SPRING_STEEL if spring else STEEL
    return shape.with_material(
        props["material"],
        density_g_cm3=props["density_g_cm3"],
        color=props["color"],
    )


@component(include="*")
class LatchPullBail:
    """2 mm pull bail reconstructed from native features 33–41."""

    thickness = 2.0
    bend_radius = 1.0
    k_factor = 0.40
    pin_hole_diameter = 4.1

    def build(self):
        with Sketch(name="Pull bail blank", plane="XY") as blank:
            contour = blank.profile(start=(-42.16287547531802, 2.2))
            contour.line_to((42.16287547531802, 2.2))
            contour.arc_center_to(
                (42.16287547531802, 11.5),
                center=(42.16287547531802, 6.85),
                clockwise=False,
            )
            contour.line_to((28.077433388230816, 11.5))
            contour.line_to((11.577433388230814, 7.1))
            contour.line_to((-11.577433388230814, 7.1))
            contour.line_to((-28.077433388230816, 11.5))
            contour.line_to((-42.16287547531802, 11.5))
            contour.arc_center_to(
                (-42.16287547531802, 2.2),
                center=(-42.16287547531802, 6.85),
                clockwise=False,
            )
            contour.close()

        bail = blank.sheet_metal(
            thickness=self.thickness,
            bend_radius=self.bend_radius,
            k_factor=self.k_factor,
            rule_name="Pull bail 2 mm",
        )

        for x in (-42.16287547531801, 42.16287547531801):
            bail = bail + Hole(
                d=self.pin_hole_diameter,
                direction=(0, 0, -1),
            ).at(x, 6.0, self.thickness)

        # Native Fold7..Fold12.  The local XY coordinates are the original
        # source Sketch coordinates; the occurrence rotation maps them back to
        # the source YZ plane.
        bail = bail.fold(
            line=((37.35211495915475, 2.2), (37.35211495915475, 11.5)),
            angle=25,
            fixed=(0, 4.0, 0),
            position="start",
            flip=True,
        )
        bail = bail.fold(
            line=((34.37743338823081, 2.2), (34.37743338823081, 11.5)),
            angle=25,
            fixed=(0, 4.0, 0),
            position="start",
        )
        bail = bail.fold(
            line=((8.75, 2.2), (8.75, 7.1)),
            angle=90,
            fixed=(0, 4.0, 0),
            position="start",
        )
        bail = bail.fold(
            line=((-37.35211495915475, 11.5), (-37.35211495915475, 2.2)),
            angle=25,
            fixed=(0, 4.0, 0),
            position="start",
            flip=True,
        )
        bail = bail.fold(
            line=((-34.37743338823081, 11.5), (-34.37743338823081, 2.2)),
            angle=25,
            fixed=(0, 4.0, 0),
            position="start",
        )
        bail = bail.fold(
            line=((-8.75, 7.1), (-8.75, 2.2)),
            angle=90,
            fixed=(0, 4.0, 0),
            position="start",
        )
        return _steel(bail)


@component(include="*")
class LatchMountingFoot:
    """2 mm mounting foot and front hinge tabs from native features 44–51."""

    thickness = 2.0
    bend_radius = 0.6
    k_factor = 0.40
    mounting_hole_diameter = 4.2
    hinge_hole_diameter = 4.1
    locking_rivet_hole_diameter = 3.2

    def build(self):
        with Sketch(name="Mounting foot blank", plane="XY") as blank:
            contour = blank.profile(start=(27.0, -8.25))
            contour.line_to((40.0, -8.25))
            contour.line_to((40.0, -10.449114857512855))
            contour.line_to((41.75, -15.299114857512857))
            contour.arc_center_to(
                (49.25, -15.299114857512857),
                center=(45.5, -15.299114857512857),
                clockwise=False,
            )
            contour.line_to((51.0, -10.449114857512855))
            contour.line_to((51.0, -8.25))
            contour.line_to((55.5, -8.25))
            contour.arc_center_to(
                (58.5, -5.25),
                center=(55.5, -5.25),
                clockwise=False,
            )
            contour.line_to((58.5, 5.25))
            contour.arc_center_to(
                (55.5, 8.25),
                center=(55.5, 5.25),
                clockwise=False,
            )
            contour.line_to((51.0, 8.25))
            contour.line_to((51.0, 10.449114857512855))
            contour.line_to((49.25, 15.299114857512857))
            contour.arc_center_to(
                (41.75, 15.299114857512857),
                center=(45.5, 15.299114857512857),
                clockwise=False,
            )
            contour.line_to((40.0, 10.449114857512855))
            contour.line_to((40.0, 8.25))
            contour.line_to((27.0, 8.25))
            contour.line_to((25.5, 3.8))
            contour.line_to((15.5, 3.8))
            contour.line_to((15.5, -3.8))
            contour.line_to((25.5, -3.8))
            contour.line_to((27.0, -8.25))
            contour.close()

        foot = blank.sheet_metal(
            thickness=self.thickness,
            bend_radius=self.bend_radius,
            k_factor=self.k_factor,
            rule_name="Mounting foot 2 mm",
        )

        for x in (38.5, 52.5):
            foot = foot + Hole(
                d=self.mounting_hole_diameter,
                direction=(0, 0, -1),
            ).at(x, 0, self.thickness)

        for y in (-15.299114857512857, 15.299114857512857):
            foot = foot + Hole(
                d=self.hinge_hole_diameter,
                direction=(0, 0, -1),
            ).at(45.5, y, self.thickness)

        foot = foot.fold(
            line=((40.0, 8.25), (51.0, 8.25)),
            angle=90,
            fixed=(29.5, 0, 0),
            position="start",
        )
        foot = foot.fold(
            line=((51.0, -8.25), (40.0, -8.25)),
            angle=90,
            fixed=(29.5, 0, 0),
            position="start",
        )
        foot = foot.flange(
            edges=[(20.5, 3.8, 0), (20.5, -3.8, 0)],
            height=11.5,
            angle=90,
            position="outside",
            flip=True,
        )

        # Native feature 50/51 trims both raised hinge tabs with one XZ
        # profile and drills the common Ø3.9 front-hinge bore.
        with Sketch(
            name="Front hinge tab trim",
            plane="XZ",
            offset=-7.0,
        ) as trim:
            contour = trim.profile(start=(14.5, -7.3))
            contour.line_to((17.0, -7.3))
            contour.arc_center_to(
                (24.0, -7.3),
                center=(20.5, -7.3),
                clockwise=False,
            )
            contour.line_to((26.5, -7.3))
            contour.line_to((26.5, -13.3))
            contour.line_to((14.5, -13.3))
            contour.line_to((14.5, -7.3))
            contour.close()

        foot = foot - trim.extrude(14)
        foot = foot - Cylinder(
            d=3.9,
            h=14,
            axis=Axis.Y,
        ).at(20.5, 0, 7.3)

        # Native late locking-lip rivet hole plus its 0.4 mm underside seat.
        foot = foot - Cylinder(
            d=self.locking_rivet_hole_diameter,
            h=2.9,
            anchor=Anchor.BOTTOM,
        ).at(45.5, 0, 0, anchor=Anchor.BOTTOM)
        foot = foot - Cylinder(
            d=4.0,
            h=0.4,
            anchor=Anchor.BOTTOM,
        ).at(45.5, 0, 0, anchor=Anchor.BOTTOM)

        return _steel(foot)


@component(include="*")
class LatchHandle:
    """1.6 mm operating handle from native features 52–56 and 75–76."""

    thickness = 1.6
    bend_radius = 0.9
    k_factor = 0.40

    def build(self):
        # The native sheet_base uses flip=true.  Mirror the in-plane Y
        # coordinates here and rotate the completed occurrence 180° around X;
        # that maps local +Z material back to the native -Z sheet side without
        # introducing a non-native solid approximation.
        with Sketch(name="Operating handle blank", plane="XY") as blank:
            contour = blank.profile(start=(73.0, -8.169026343264141))
            contour.line_to((57.0, -17.76902634326414))
            contour.line_to((26.3, -17.76902634326414))
            contour.line_to((20.5, -16.46902634326414))
            contour.arc_center_to(
                (20.5, -9.26902634326414),
                center=(20.5, -12.869026343264142),
                clockwise=True,
            )
            contour.line_to((25.3, -9.26902634326414))
            contour.line_to((25.3, -5.75))
            contour.line_to((25.3, 5.75))
            contour.line_to((25.3, 9.26902634326414))
            contour.line_to((20.5, 9.26902634326414))
            contour.arc_center_to(
                (20.5, 16.46902634326414),
                center=(20.5, 12.869026343264142),
                clockwise=True,
            )
            contour.line_to((26.3, 17.76902634326414))
            contour.line_to((57.0, 17.76902634326414))
            contour.line_to((73.0, 8.169026343264141))
            contour.line_to((73.0, -8.169026343264141))
            contour.close()

        handle = blank.sheet_metal(
            thickness=self.thickness,
            bend_radius=self.bend_radius,
            k_factor=self.k_factor,
            rule_name="Operating handle 1.6 mm",
        )

        for x, source_y, diameter in (
            (33.5, 14.169026343264141, 4.1),
            (45.5, 12.71902634326414, 4.1),
            (20.5, 12.869026343264142, 3.9),
            (33.5, -14.169026343264141, 4.1),
            (45.5, -12.71902634326414, 4.1),
            (20.5, -12.869026343264142, 3.9),
        ):
            handle = handle + Hole(
                d=diameter,
                direction=(0, 0, -1),
            ).at(x, -source_y, self.thickness)

        handle = handle.fold(
            line=((25.3, -5.75), (73.0, -5.75)),
            angle=90,
            fixed=(36.5, 0, 0),
            position="start",
        )
        handle = handle.fold(
            line=((73.0, 5.75), (25.3, 5.75)),
            angle=90,
            fixed=(36.5, 0, 0),
            position="start",
        )

        # Native rectangular locking-lip opening (feature 75/76).  In this
        # local mirrored sheet it remains symmetric about Y=0.
        with Sketch(name="Locking lip opening", plane="XY") as opening:
            contour = opening.profile(start=(56.55, -4.5))
            contour.line_to((60.35, -4.5))
            contour.line_to((60.35, 4.5))
            contour.line_to((56.55, 4.5))
            contour.line_to((56.55, -4.5))
            contour.close()
        handle = handle - opening.extrude(2.0)

        return _steel(handle)


@component(include="*")
class LatchLockingLip:
    """0.7 mm native contour-flange spring from source features 73–74."""

    width = 8.4
    thickness = 0.7
    bend_radius = 0.8
    k_factor = 0.42

    def build(self):
        with Sketch(name="Locking lip contour", plane="XZ") as sketch:
            chain = sketch.chain(start=(43.0, -2.0))
            chain.line_to((56.85, -2.0))
            chain.tangent_arc_to((58.35, -3.5))
            chain.line_to((58.35, -16.3))
            chain.tangent_arc_to((56.41340572836789, -14.61654428313933))
            path = chain.finish()

        lip = path.contour_flange(
            distance=self.width,
            thickness=self.thickness,
            bend_radius=self.bend_radius,
            k_factor=self.k_factor,
            rule_name="Locking spring 0.7 mm",
        )

        # Source feature 78 cuts the same Ø3.2 rivet hole through foot and lip.
        lip = lip - Cylinder(
            d=3.2,
            h=2.9,
            anchor=Anchor.BOTTOM,
        ).at(45.5, 4.2, 0, anchor=Anchor.BOTTOM)

        return _steel(lip, spring=True)


@component(include="*")
class LatchBailRivetLeft:
    def build(self):
        with Sketch(name="Left bail rivet profile", plane="XY") as profile:
            contour = profile.profile(start=(0.0, -6.25))
            for point in (
                (2.2, -6.25),
                (2.45, -6.45),
                (2.45, -6.63),
                (2.0, -6.63),
                (2.0, -10.47),
                (2.6, -10.47),
                (2.6, -10.92),
                (2.25, -11.12),
                (0.0, -11.12),
                (0.0, -6.25),
            ):
                contour.line_to(point)
            contour.close()
        return _steel(profile.revolve(axis=Axis.Y))


@component(include="*")
class LatchBailRivetRight:
    def build(self):
        with Sketch(name="Right bail rivet profile", plane="XY") as profile:
            contour = profile.profile(start=(0.0, 6.25))
            for point in (
                (2.2, 6.25),
                (2.45, 6.45),
                (2.45, 6.63),
                (2.0, 6.63),
                (2.0, 10.47),
                (2.6, 10.47),
                (2.6, 10.92),
                (2.25, 11.12),
                (0.0, 11.12),
                (0.0, 6.25),
            ):
                contour.line_to(point)
            contour.close()
        return _steel(profile.revolve(axis=Axis.Y))


@component(include="*")
class LatchHingePin:
    diameter = 3.8
    length = 16.9

    def build(self):
        return _steel(
            Cylinder(
                d=self.diameter,
                h=self.length,
                axis=Axis.Y,
            )
        )


@component(include="*")
class LatchLockingLipRivet:
    def build(self):
        # Source Sketch 71 uses +Z as its second in-plane direction.  Forge's
        # native XZ plane uses the opposite sketch-Y convention, hence the
        # negated second coordinates below.
        with Sketch(name="Locking lip rivet profile", plane="XZ") as profile:
            contour = profile.profile(start=(0.0, 0.0))
            for point in (
                (1.95, 0.0),
                (1.95, -0.37),
                (1.55, -0.37),
                (1.55, -2.72),
                (2.15, -2.72),
                (2.15, -3.04),
                (1.85, -3.24),
                (0.0, -3.24),
                (0.0, 0.0),
            ):
                contour.line_to(point)
            contour.close()
        return _steel(profile.revolve(axis=Axis.Z))


class Latch:
    """Complete source-faithful latch assembly."""

    def build(self):
        mounting_foot = LatchMountingFoot(
            placement=Placement(x=-36.5),
        )
        handle = LatchHandle(
            placement=Placement(
                x=-36.5,
                z=14.5,
                rotation=((1, 0, 0), 180),
            ),
        )
        pull_bail = LatchPullBail(
            placement=Placement(
                x=-36.5,
                rotation=((1, 1, 1), 120),
            ),
        )
        left_rivet = LatchBailRivetLeft(
            placement=Placement(x=-3.0, z=6.0),
        )
        right_rivet = LatchBailRivetRight(
            placement=Placement(x=-3.0, z=6.0),
        )
        hinge_pin = LatchHingePin(
            placement=Placement(x=-16.0, z=7.3),
        )
        locking_lip = LatchLockingLip(
            placement=Placement(x=-36.5, y=-4.2),
        )
        locking_rivet = LatchLockingLipRivet(
            placement=Placement(x=9.0),
        )

        return (
            mounting_foot
            + handle
            + pull_bail
            + left_rivet
            + right_rivet
            + hinge_pin
            + locking_lip
            + locking_rivet
        )


Latch()
SolidCraft command sequence 199 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "2",
       "name": "d1_LatchMountingFoot_thickness",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "0.6",
       "name": "d1_LatchMountingFoot_bend_radius",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "0.4",
       "name": "d1_LatchMountingFoot_k_factor",
       "unit": ""
    }
    
  4. parameters.add
    {
       "expression": "4.2",
       "name": "d1_LatchMountingFoot_mounting_hole_diameter",
       "unit": "mm"
    }
    
  5. parameters.add
    {
       "expression": "4.1",
       "name": "d1_LatchMountingFoot_hinge_hole_diameter",
       "unit": "mm"
    }
    
  6. parameters.add
    {
       "expression": "3.2",
       "name": "d1_LatchMountingFoot_locking_rivet_hole_diameter",
       "unit": "mm"
    }
    
  7. component.create
    {
       "grounded": true,
       "name": "LatchMountingFoot"
    }
    
  8. sheet.manage_rules
    {
       "active": true,
       "bend_radius": "d1_LatchMountingFoot_bend_radius",
       "k_factor": "d1_LatchMountingFoot_k_factor",
       "name": "Mounting foot 2 mm",
       "thickness": "d1_LatchMountingFoot_thickness"
    }
    
  9. sketch.create
    {
       "name": "d1_LatchMountingFoot__Mounting foot blank",
       "plane": "XY"
    }
    
  10. sketch.line
    {
       "connect": true,
       "points": [
          [
             27,
             -8.25
          ],
          [
             40,
             -8.25
          ]
       ]
    }
    
  11. sketch.line
    {
       "connect": true,
       "points": [
          [
             40,
             -8.25
          ],
          [
             40,
             -10.449114857512855
          ]
       ]
    }
    
  12. sketch.line
    {
       "connect": true,
       "points": [
          [
             40,
             -10.449114857512855
          ],
          [
             41.75,
             -15.299114857512857
          ]
       ]
    }
    
  13. sketch.arc.center_point
    {
       "center": [
          45.5,
          -15.299114857512857
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          49.25,
          -15.299114857512857
       ],
       "start": [
          41.75,
          -15.299114857512857
       ]
    }
    
  14. sketch.line
    {
       "connect": true,
       "points": [
          [
             49.25,
             -15.299114857512857
          ],
          [
             51,
             -10.449114857512855
          ]
       ]
    }
    
  15. sketch.line
    {
       "connect": true,
       "points": [
          [
             51,
             -10.449114857512855
          ],
          [
             51,
             -8.25
          ]
       ]
    }
    
  16. sketch.line
    {
       "connect": true,
       "points": [
          [
             51,
             -8.25
          ],
          [
             55.5,
             -8.25
          ]
       ]
    }
    
  17. sketch.arc.center_point
    {
       "center": [
          55.5,
          -5.25
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          58.5,
          -5.25
       ],
       "start": [
          55.5,
          -8.25
       ]
    }
    
  18. sketch.line
    {
       "connect": true,
       "points": [
          [
             58.5,
             -5.25
          ],
          [
             58.5,
             5.25
          ]
       ]
    }
    
  19. sketch.arc.center_point
    {
       "center": [
          55.5,
          5.25
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          55.5,
          8.25
       ],
       "start": [
          58.5,
          5.25
       ]
    }
    
  20. sketch.line
    {
       "connect": true,
       "points": [
          [
             55.5,
             8.25
          ],
          [
             51,
             8.25
          ]
       ]
    }
    
  21. sketch.line
    {
       "connect": true,
       "points": [
          [
             51,
             8.25
          ],
          [
             51,
             10.449114857512855
          ]
       ]
    }
    
  22. sketch.line
    {
       "connect": true,
       "points": [
          [
             51,
             10.449114857512855
          ],
          [
             49.25,
             15.299114857512857
          ]
       ]
    }
    
  23. sketch.arc.center_point
    {
       "center": [
          45.5,
          15.299114857512857
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          41.75,
          15.299114857512857
       ],
       "start": [
          49.25,
          15.299114857512857
       ]
    }
    
  24. sketch.line
    {
       "connect": true,
       "points": [
          [
             41.75,
             15.299114857512857
          ],
          [
             40,
             10.449114857512855
          ]
       ]
    }
    
  25. sketch.line
    {
       "connect": true,
       "points": [
          [
             40,
             10.449114857512855
          ],
          [
             40,
             8.25
          ]
       ]
    }
    
  26. sketch.line
    {
       "connect": true,
       "points": [
          [
             40,
             8.25
          ],
          [
             27,
             8.25
          ]
       ]
    }
    
  27. sketch.line
    {
       "connect": true,
       "points": [
          [
             27,
             8.25
          ],
          [
             25.5,
             3.8
          ]
       ]
    }
    
  28. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.5,
             3.8
          ],
          [
             15.5,
             3.8
          ]
       ]
    }
    
  29. sketch.line
    {
       "connect": true,
       "points": [
          [
             15.5,
             3.8
          ],
          [
             15.5,
             -3.8
          ]
       ]
    }
    
  30. sketch.line
    {
       "connect": true,
       "points": [
          [
             15.5,
             -3.8
          ],
          [
             25.5,
             -3.8
          ]
       ]
    }
    
  31. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.5,
             -3.8
          ],
          [
             27,
             -8.25
          ]
       ]
    }
    
  32. sketch.finish
  33. sheet.flange
    {
       "body_name": "LatchMountingFoot",
       "rule": "Mounting foot 2 mm",
       "sketch": "d1_LatchMountingFoot__Mounting foot blank",
       "type": "base"
    }
    
  34. solid.hole
    {
       "diameter": "d1_LatchMountingFoot_mounting_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          38.5,
          0,
          "d1_LatchMountingFoot_thickness"
       ],
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  35. solid.hole
    {
       "diameter": "d1_LatchMountingFoot_mounting_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          52.5,
          0,
          "d1_LatchMountingFoot_thickness"
       ],
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  36. solid.hole
    {
       "diameter": "d1_LatchMountingFoot_hinge_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          45.5,
          -15.299114857512857,
          "d1_LatchMountingFoot_thickness"
       ],
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  37. solid.hole
    {
       "diameter": "d1_LatchMountingFoot_hinge_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          45.5,
          15.299114857512857,
          "d1_LatchMountingFoot_thickness"
       ],
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  38. sheet.fold
    {
       "angle": 90,
       "body": "LatchMountingFoot",
       "fixed": [
          29.5,
          0,
          0
       ],
       "flip": false,
       "points": [
          [
             40,
             8.25,
             0
          ],
          [
             51,
             8.25,
             0
          ]
       ],
       "position": "start"
    }
    
  39. sheet.fold
    {
       "angle": 90,
       "body": "LatchMountingFoot",
       "fixed": [
          29.5,
          0,
          0
       ],
       "flip": false,
       "points": [
          [
             51,
             -8.25,
             0
          ],
          [
             40,
             -8.25,
             0
          ]
       ],
       "position": "start"
    }
    
  40. sheet.flange
    {
       "angle": 90,
       "body": "LatchMountingFoot",
       "edges": [
          [
             20.5,
             3.8,
             0
          ],
          [
             20.5,
             -3.8,
             0
          ]
       ],
       "flip": true,
       "height": 11.5,
       "position": "outside",
       "type": "edge"
    }
    
  41. sketch.create
    {
       "name": "d1_LatchMountingFoot__Front hinge tab trim",
       "offset": -7,
       "plane": "XZ"
    }
    
  42. sketch.line
    {
       "connect": true,
       "points": [
          [
             14.5,
             -7.3
          ],
          [
             17,
             -7.3
          ]
       ]
    }
    
  43. sketch.arc.center_point
    {
       "center": [
          20.5,
          -7.3
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          24,
          -7.3
       ],
       "start": [
          17,
          -7.3
       ]
    }
    
  44. sketch.line
    {
       "connect": true,
       "points": [
          [
             24,
             -7.3
          ],
          [
             26.5,
             -7.3
          ]
       ]
    }
    
  45. sketch.line
    {
       "connect": true,
       "points": [
          [
             26.5,
             -7.3
          ],
          [
             26.5,
             -13.3
          ]
       ]
    }
    
  46. sketch.line
    {
       "connect": true,
       "points": [
          [
             26.5,
             -13.3
          ],
          [
             14.5,
             -13.3
          ]
       ]
    }
    
  47. sketch.line
    {
       "connect": true,
       "points": [
          [
             14.5,
             -13.3
          ],
          [
             14.5,
             -7.3
          ]
       ]
    }
    
  48. sketch.finish
  49. solid.extrude
    {
       "direction": "positive",
       "distance": 14,
       "operation": "cut",
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  50. solid.cylinder
    {
       "axis": "Y",
       "base": [
          20.5,
          -7,
          7.3
       ],
       "diameter": 3.9,
       "height": 14,
       "operation": "cut",
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  51. solid.cylinder
    {
       "axis": "Z",
       "base": [
          45.5,
          0,
          0
       ],
       "diameter": "d1_LatchMountingFoot_locking_rivet_hole_diameter",
       "height": 2.9,
       "operation": "cut",
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  52. solid.cylinder
    {
       "axis": "Z",
       "base": [
          45.5,
          0,
          0
       ],
       "diameter": 4,
       "height": 0.4,
       "operation": "cut",
       "targets": [
          "LatchMountingFoot"
       ]
    }
    
  53. material.create
    {
       "color": "#B7BDC2",
       "density_g_cm3": 7.85,
       "name": "Galvanized steel"
    }
    
  54. material.assign
    {
       "bodies": [
          "LatchMountingFoot"
       ],
       "material": "Galvanized steel"
    }
    
  55. component.activate
    {
       "component": "root"
    }
    
  56. parameters.add
    {
       "expression": "1.6",
       "name": "d2_LatchHandle_thickness",
       "unit": "mm"
    }
    
  57. parameters.add
    {
       "expression": "0.9",
       "name": "d2_LatchHandle_bend_radius",
       "unit": "mm"
    }
    
  58. parameters.add
    {
       "expression": "0.4",
       "name": "d2_LatchHandle_k_factor",
       "unit": ""
    }
    
  59. component.create
    {
       "grounded": false,
       "name": "LatchHandle"
    }
    
  60. sheet.manage_rules
    {
       "active": true,
       "bend_radius": "d2_LatchHandle_bend_radius",
       "k_factor": "d2_LatchHandle_k_factor",
       "name": "Operating handle 1.6 mm",
       "thickness": "d2_LatchHandle_thickness"
    }
    
  61. sketch.create
    {
       "name": "d2_LatchHandle__Operating handle blank",
       "plane": "XY"
    }
    
  62. sketch.line
    {
       "connect": true,
       "points": [
          [
             73,
             -8.169026343264141
          ],
          [
             57,
             -17.76902634326414
          ]
       ]
    }
    
  63. sketch.line
    {
       "connect": true,
       "points": [
          [
             57,
             -17.76902634326414
          ],
          [
             26.3,
             -17.76902634326414
          ]
       ]
    }
    
  64. sketch.line
    {
       "connect": true,
       "points": [
          [
             26.3,
             -17.76902634326414
          ],
          [
             20.5,
             -16.46902634326414
          ]
       ]
    }
    
  65. sketch.arc.center_point
    {
       "center": [
          20.5,
          -12.869026343264142
       ],
       "clockwise": true,
       "connect": true,
       "end": [
          20.5,
          -9.26902634326414
       ],
       "start": [
          20.5,
          -16.46902634326414
       ]
    }
    
  66. sketch.line
    {
       "connect": true,
       "points": [
          [
             20.5,
             -9.26902634326414
          ],
          [
             25.3,
             -9.26902634326414
          ]
       ]
    }
    
  67. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.3,
             -9.26902634326414
          ],
          [
             25.3,
             -5.75
          ]
       ]
    }
    
  68. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.3,
             -5.75
          ],
          [
             25.3,
             5.75
          ]
       ]
    }
    
  69. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.3,
             5.75
          ],
          [
             25.3,
             9.26902634326414
          ]
       ]
    }
    
  70. sketch.line
    {
       "connect": true,
       "points": [
          [
             25.3,
             9.26902634326414
          ],
          [
             20.5,
             9.26902634326414
          ]
       ]
    }
    
  71. sketch.arc.center_point
    {
       "center": [
          20.5,
          12.869026343264142
       ],
       "clockwise": true,
       "connect": true,
       "end": [
          20.5,
          16.46902634326414
       ],
       "start": [
          20.5,
          9.26902634326414
       ]
    }
    
  72. sketch.line
    {
       "connect": true,
       "points": [
          [
             20.5,
             16.46902634326414
          ],
          [
             26.3,
             17.76902634326414
          ]
       ]
    }
    
  73. sketch.line
    {
       "connect": true,
       "points": [
          [
             26.3,
             17.76902634326414
          ],
          [
             57,
             17.76902634326414
          ]
       ]
    }
    
  74. sketch.line
    {
       "connect": true,
       "points": [
          [
             57,
             17.76902634326414
          ],
          [
             73,
             8.169026343264141
          ]
       ]
    }
    
  75. sketch.line
    {
       "connect": true,
       "points": [
          [
             73,
             8.169026343264141
          ],
          [
             73,
             -8.169026343264141
          ]
       ]
    }
    
  76. sketch.finish
  77. sheet.flange
    {
       "body_name": "LatchHandle",
       "rule": "Operating handle 1.6 mm",
       "sketch": "d2_LatchHandle__Operating handle blank",
       "type": "base"
    }
    
  78. solid.hole
    {
       "diameter": 4.1,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          33.5,
          -14.169026343264141,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  79. solid.hole
    {
       "diameter": 4.1,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          45.5,
          -12.71902634326414,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  80. solid.hole
    {
       "diameter": 3.9,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          20.5,
          -12.869026343264142,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  81. solid.hole
    {
       "diameter": 4.1,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          33.5,
          14.169026343264141,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  82. solid.hole
    {
       "diameter": 4.1,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          45.5,
          12.71902634326414,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  83. solid.hole
    {
       "diameter": 3.9,
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          20.5,
          12.869026343264142,
          "d2_LatchHandle_thickness"
       ],
       "targets": [
          "LatchHandle"
       ]
    }
    
  84. sheet.fold
    {
       "angle": 90,
       "body": "LatchHandle",
       "fixed": [
          36.5,
          0,
          0
       ],
       "flip": false,
       "points": [
          [
             25.3,
             -5.75,
             0
          ],
          [
             73,
             -5.75,
             0
          ]
       ],
       "position": "start"
    }
    
  85. sheet.fold
    {
       "angle": 90,
       "body": "LatchHandle",
       "fixed": [
          36.5,
          0,
          0
       ],
       "flip": false,
       "points": [
          [
             73,
             5.75,
             0
          ],
          [
             25.3,
             5.75,
             0
          ]
       ],
       "position": "start"
    }
    
  86. sketch.create
    {
       "name": "d2_LatchHandle__Locking lip opening",
       "plane": "XY"
    }
    
  87. sketch.line
    {
       "connect": true,
       "points": [
          [
             56.55,
             -4.5
          ],
          [
             60.35,
             -4.5
          ]
       ]
    }
    
  88. sketch.line
    {
       "connect": true,
       "points": [
          [
             60.35,
             -4.5
          ],
          [
             60.35,
             4.5
          ]
       ]
    }
    
  89. sketch.line
    {
       "connect": true,
       "points": [
          [
             60.35,
             4.5
          ],
          [
             56.55,
             4.5
          ]
       ]
    }
    
  90. sketch.line
    {
       "connect": true,
       "points": [
          [
             56.55,
             4.5
          ],
          [
             56.55,
             -4.5
          ]
       ]
    }
    
  91. sketch.finish
  92. solid.extrude
    {
       "direction": "positive",
       "distance": 2,
       "operation": "cut",
       "targets": [
          "LatchHandle"
       ]
    }
    
  93. material.assign
    {
       "bodies": [
          "LatchHandle"
       ],
       "material": "Galvanized steel"
    }
    
  94. component.activate
    {
       "component": "root"
    }
    
  95. parameters.add
    {
       "expression": "2",
       "name": "d3_LatchPullBail_thickness",
       "unit": "mm"
    }
    
  96. parameters.add
    {
       "expression": "1",
       "name": "d3_LatchPullBail_bend_radius",
       "unit": "mm"
    }
    
  97. parameters.add
    {
       "expression": "0.4",
       "name": "d3_LatchPullBail_k_factor",
       "unit": ""
    }
    
  98. parameters.add
    {
       "expression": "4.1",
       "name": "d3_LatchPullBail_pin_hole_diameter",
       "unit": "mm"
    }
    
  99. component.create
    {
       "grounded": false,
       "name": "LatchPullBail"
    }
    
  100. sheet.manage_rules
    {
       "active": true,
       "bend_radius": "d3_LatchPullBail_bend_radius",
       "k_factor": "d3_LatchPullBail_k_factor",
       "name": "Pull bail 2 mm",
       "thickness": "d3_LatchPullBail_thickness"
    }
    
  101. sketch.create
    {
       "name": "d3_LatchPullBail__Pull bail blank",
       "plane": "XY"
    }
    
  102. sketch.line
    {
       "connect": true,
       "points": [
          [
             -42.16287547531802,
             2.2
          ],
          [
             42.16287547531802,
             2.2
          ]
       ]
    }
    
  103. sketch.arc.center_point
    {
       "center": [
          42.16287547531802,
          6.85
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          42.16287547531802,
          11.5
       ],
       "start": [
          42.16287547531802,
          2.2
       ]
    }
    
  104. sketch.line
    {
       "connect": true,
       "points": [
          [
             42.16287547531802,
             11.5
          ],
          [
             28.077433388230816,
             11.5
          ]
       ]
    }
    
  105. sketch.line
    {
       "connect": true,
       "points": [
          [
             28.077433388230816,
             11.5
          ],
          [
             11.577433388230814,
             7.1
          ]
       ]
    }
    
  106. sketch.line
    {
       "connect": true,
       "points": [
          [
             11.577433388230814,
             7.1
          ],
          [
             -11.577433388230814,
             7.1
          ]
       ]
    }
    
  107. sketch.line
    {
       "connect": true,
       "points": [
          [
             -11.577433388230814,
             7.1
          ],
          [
             -28.077433388230816,
             11.5
          ]
       ]
    }
    
  108. sketch.line
    {
       "connect": true,
       "points": [
          [
             -28.077433388230816,
             11.5
          ],
          [
             -42.16287547531802,
             11.5
          ]
       ]
    }
    
  109. sketch.arc.center_point
    {
       "center": [
          -42.16287547531802,
          6.85
       ],
       "clockwise": false,
       "connect": true,
       "end": [
          -42.16287547531802,
          2.2
       ],
       "start": [
          -42.16287547531802,
          11.5
       ]
    }
    
  110. sketch.finish
  111. sheet.flange
    {
       "body_name": "LatchPullBail",
       "rule": "Pull bail 2 mm",
       "sketch": "d3_LatchPullBail__Pull bail blank",
       "type": "base"
    }
    
  112. solid.hole
    {
       "diameter": "d3_LatchPullBail_pin_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          -42.16287547531801,
          6,
          "d3_LatchPullBail_thickness"
       ],
       "targets": [
          "LatchPullBail"
       ]
    }
    
  113. solid.hole
    {
       "diameter": "d3_LatchPullBail_pin_hole_diameter",
       "direction": [
          0,
          0,
          -1
       ],
       "position": [
          42.16287547531801,
          6,
          "d3_LatchPullBail_thickness"
       ],
       "targets": [
          "LatchPullBail"
       ]
    }
    
  114. sheet.fold
    {
       "angle": 25,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": true,
       "points": [
          [
             37.35211495915475,
             2.2,
             0
          ],
          [
             37.35211495915475,
             11.5,
             0
          ]
       ],
       "position": "start"
    }
    
  115. sheet.fold
    {
       "angle": 25,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": false,
       "points": [
          [
             34.37743338823081,
             2.2,
             0
          ],
          [
             34.37743338823081,
             11.5,
             0
          ]
       ],
       "position": "start"
    }
    
  116. sheet.fold
    {
       "angle": 90,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": false,
       "points": [
          [
             8.75,
             2.2,
             0
          ],
          [
             8.75,
             7.1,
             0
          ]
       ],
       "position": "start"
    }
    
  117. sheet.fold
    {
       "angle": 25,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": true,
       "points": [
          [
             -37.35211495915475,
             11.5,
             0
          ],
          [
             -37.35211495915475,
             2.2,
             0
          ]
       ],
       "position": "start"
    }
    
  118. sheet.fold
    {
       "angle": 25,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": false,
       "points": [
          [
             -34.37743338823081,
             11.5,
             0
          ],
          [
             -34.37743338823081,
             2.2,
             0
          ]
       ],
       "position": "start"
    }
    
  119. sheet.fold
    {
       "angle": 90,
       "body": "LatchPullBail",
       "fixed": [
          0,
          4,
          0
       ],
       "flip": false,
       "points": [
          [
             -8.75,
             7.1,
             0
          ],
          [
             -8.75,
             2.2,
             0
          ]
       ],
       "position": "start"
    }
    
  120. material.assign
    {
       "bodies": [
          "LatchPullBail"
       ],
       "material": "Galvanized steel"
    }
    
  121. component.activate
    {
       "component": "root"
    }
    
  122. component.create
    {
       "grounded": false,
       "name": "LatchBailRivetLeft"
    }
    
  123. sketch.create
    {
       "name": "d4_LatchBailRivetLeft__Left bail rivet profile",
       "plane": "XY"
    }
    
  124. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             -6.25
          ],
          [
             2.2,
             -6.25
          ]
       ]
    }
    
  125. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.2,
             -6.25
          ],
          [
             2.45,
             -6.45
          ]
       ]
    }
    
  126. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.45,
             -6.45
          ],
          [
             2.45,
             -6.63
          ]
       ]
    }
    
  127. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.45,
             -6.63
          ],
          [
             2,
             -6.63
          ]
       ]
    }
    
  128. sketch.line
    {
       "connect": true,
       "points": [
          [
             2,
             -6.63
          ],
          [
             2,
             -10.47
          ]
       ]
    }
    
  129. sketch.line
    {
       "connect": true,
       "points": [
          [
             2,
             -10.47
          ],
          [
             2.6,
             -10.47
          ]
       ]
    }
    
  130. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.6,
             -10.47
          ],
          [
             2.6,
             -10.92
          ]
       ]
    }
    
  131. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.6,
             -10.92
          ],
          [
             2.25,
             -11.12
          ]
       ]
    }
    
  132. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.25,
             -11.12
          ],
          [
             0,
             -11.12
          ]
       ]
    }
    
  133. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             -11.12
          ],
          [
             0,
             -6.25
          ]
       ]
    }
    
  134. sketch.finish
  135. solid.revolve
    {
       "angle": 360,
       "axis": "Y",
       "body_name": "LatchBailRivetLeft",
       "sketch": "d4_LatchBailRivetLeft__Left bail rivet profile"
    }
    
  136. material.assign
    {
       "bodies": [
          "LatchBailRivetLeft"
       ],
       "material": "Galvanized steel"
    }
    
  137. component.activate
    {
       "component": "root"
    }
    
  138. component.create
    {
       "grounded": false,
       "name": "LatchBailRivetRight"
    }
    
  139. sketch.create
    {
       "name": "d5_LatchBailRivetRight__Right bail rivet profile",
       "plane": "XY"
    }
    
  140. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             6.25
          ],
          [
             2.2,
             6.25
          ]
       ]
    }
    
  141. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.2,
             6.25
          ],
          [
             2.45,
             6.45
          ]
       ]
    }
    
  142. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.45,
             6.45
          ],
          [
             2.45,
             6.63
          ]
       ]
    }
    
  143. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.45,
             6.63
          ],
          [
             2,
             6.63
          ]
       ]
    }
    
  144. sketch.line
    {
       "connect": true,
       "points": [
          [
             2,
             6.63
          ],
          [
             2,
             10.47
          ]
       ]
    }
    
  145. sketch.line
    {
       "connect": true,
       "points": [
          [
             2,
             10.47
          ],
          [
             2.6,
             10.47
          ]
       ]
    }
    
  146. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.6,
             10.47
          ],
          [
             2.6,
             10.92
          ]
       ]
    }
    
  147. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.6,
             10.92
          ],
          [
             2.25,
             11.12
          ]
       ]
    }
    
  148. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.25,
             11.12
          ],
          [
             0,
             11.12
          ]
       ]
    }
    
  149. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             11.12
          ],
          [
             0,
             6.25
          ]
       ]
    }
    
  150. sketch.finish
  151. solid.revolve
    {
       "angle": 360,
       "axis": "Y",
       "body_name": "LatchBailRivetRight",
       "sketch": "d5_LatchBailRivetRight__Right bail rivet profile"
    }
    
  152. material.assign
    {
       "bodies": [
          "LatchBailRivetRight"
       ],
       "material": "Galvanized steel"
    }
    
  153. component.activate
    {
       "component": "root"
    }
    
  154. parameters.add
    {
       "expression": "16.9",
       "name": "d6_LatchHingePin_length",
       "unit": "mm"
    }
    
  155. parameters.add
    {
       "expression": "3.8",
       "name": "d6_LatchHingePin_diameter",
       "unit": "mm"
    }
    
  156. component.create
    {
       "grounded": false,
       "name": "LatchHingePin"
    }
    
  157. solid.cylinder
    {
       "axis": "Y",
       "base": [
          0,
          "-(d6_LatchHingePin_length / 2)",
          0
       ],
       "body_name": "LatchHingePin",
       "diameter": "d6_LatchHingePin_diameter",
       "height": "d6_LatchHingePin_length",
       "operation": "new"
    }
    
  158. material.assign
    {
       "bodies": [
          "LatchHingePin"
       ],
       "material": "Galvanized steel"
    }
    
  159. component.activate
    {
       "component": "root"
    }
    
  160. parameters.add
    {
       "expression": "8.4",
       "name": "d7_LatchLockingLip_width",
       "unit": "mm"
    }
    
  161. parameters.add
    {
       "expression": "0.7",
       "name": "d7_LatchLockingLip_thickness",
       "unit": "mm"
    }
    
  162. parameters.add
    {
       "expression": "0.8",
       "name": "d7_LatchLockingLip_bend_radius",
       "unit": "mm"
    }
    
  163. parameters.add
    {
       "expression": "0.42",
       "name": "d7_LatchLockingLip_k_factor",
       "unit": ""
    }
    
  164. component.create
    {
       "grounded": false,
       "name": "LatchLockingLip"
    }
    
  165. sheet.manage_rules
    {
       "active": true,
       "bend_radius": "d7_LatchLockingLip_bend_radius",
       "k_factor": "d7_LatchLockingLip_k_factor",
       "name": "Locking spring 0.7 mm",
       "thickness": "d7_LatchLockingLip_thickness"
    }
    
  166. sketch.create
    {
       "name": "d7_LatchLockingLip__Locking lip contour",
       "plane": "XZ"
    }
    
  167. sketch.line
    {
       "connect": true,
       "ids": [
          "l1"
       ],
       "points": [
          [
             43,
             -2
          ],
          [
             56.85,
             -2
          ]
       ]
    }
    
  168. sketch.arc.tangent
    {
       "curve": "l1",
       "end": [
          58.35,
          -3.5
       ],
       "start": "l1.end"
    }
    
  169. sketch.line
    {
       "connect": true,
       "ids": [
          "l2"
       ],
       "points": [
          [
             58.35,
             -3.5
          ],
          [
             58.35,
             -16.3
          ]
       ]
    }
    
  170. sketch.arc.tangent
    {
       "curve": "l2",
       "end": [
          56.41340572836789,
          -14.61654428313933
       ],
       "start": "l2.end"
    }
    
  171. sketch.finish
  172. sheet.flange
    {
       "body_name": "LatchLockingLip",
       "curves": "$d7_LatchLockingLip_contour_curves_4",
       "distance": "d7_LatchLockingLip_width",
       "rule": "Locking spring 0.7 mm",
       "sketch": "d7_LatchLockingLip__Locking lip contour",
       "type": "contour"
    }
    
  173. solid.cylinder
    {
       "axis": "Z",
       "base": [
          45.5,
          4.2,
          0
       ],
       "diameter": 3.2,
       "height": 2.9,
       "operation": "cut",
       "targets": [
          "LatchLockingLip"
       ]
    }
    
  174. material.create
    {
       "color": "#9EA5AB",
       "density_g_cm3": 7.85,
       "name": "Spring steel"
    }
    
  175. material.assign
    {
       "bodies": [
          "LatchLockingLip"
       ],
       "material": "Spring steel"
    }
    
  176. component.activate
    {
       "component": "root"
    }
    
  177. component.create
    {
       "grounded": false,
       "name": "LatchLockingLipRivet"
    }
    
  178. sketch.create
    {
       "name": "d8_LatchLockingLipRivet__Locking lip rivet profile",
       "plane": "XZ"
    }
    
  179. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             0
          ],
          [
             1.95,
             0
          ]
       ]
    }
    
  180. sketch.line
    {
       "connect": true,
       "points": [
          [
             1.95,
             0
          ],
          [
             1.95,
             -0.37
          ]
       ]
    }
    
  181. sketch.line
    {
       "connect": true,
       "points": [
          [
             1.95,
             -0.37
          ],
          [
             1.55,
             -0.37
          ]
       ]
    }
    
  182. sketch.line
    {
       "connect": true,
       "points": [
          [
             1.55,
             -0.37
          ],
          [
             1.55,
             -2.72
          ]
       ]
    }
    
  183. sketch.line
    {
       "connect": true,
       "points": [
          [
             1.55,
             -2.72
          ],
          [
             2.15,
             -2.72
          ]
       ]
    }
    
  184. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.15,
             -2.72
          ],
          [
             2.15,
             -3.04
          ]
       ]
    }
    
  185. sketch.line
    {
       "connect": true,
       "points": [
          [
             2.15,
             -3.04
          ],
          [
             1.85,
             -3.24
          ]
       ]
    }
    
  186. sketch.line
    {
       "connect": true,
       "points": [
          [
             1.85,
             -3.24
          ],
          [
             0,
             -3.24
          ]
       ]
    }
    
  187. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             -3.24
          ],
          [
             0,
             0
          ]
       ]
    }
    
  188. sketch.finish
  189. solid.revolve
    {
       "angle": 360,
       "axis": "Z",
       "body_name": "LatchLockingLipRivet",
       "sketch": "d8_LatchLockingLipRivet__Locking lip rivet profile"
    }
    
  190. material.assign
    {
       "bodies": [
          "LatchLockingLipRivet"
       ],
       "material": "Galvanized steel"
    }
    
  191. component.activate
    {
       "component": "root"
    }
    
  192. occurrence.move
    {
       "move_grounded": true,
       "occurrence": "$latchmountingfoot",
       "translate": [
          -36.5,
          0,
          0
       ]
    }
    
  193. occurrence.move
    {
       "angle": "180 deg",
       "axis": [
          1,
          0,
          0
       ],
       "occurrence": "$latchhandle",
       "translate": [
          -36.5,
          0,
          14.5
       ]
    }
    
  194. occurrence.move
    {
       "angle": "120 deg",
       "axis": [
          1,
          1,
          1
       ],
       "occurrence": "$latchpullbail",
       "translate": [
          -36.5,
          0,
          0
       ]
    }
    
  195. occurrence.move
    {
       "occurrence": "$latchbailrivetleft",
       "translate": [
          -3,
          0,
          6
       ]
    }
    
  196. occurrence.move
    {
       "occurrence": "$latchbailrivetright",
       "translate": [
          -3,
          0,
          6
       ]
    }
    
  197. occurrence.move
    {
       "occurrence": "$latchhingepin",
       "translate": [
          -16,
          0,
          7.3
       ]
    }
    
  198. occurrence.move
    {
       "occurrence": "$latchlockinglip",
       "translate": [
          -36.5,
          -4.2,
          0
       ]
    }
    
  199. occurrence.move
    {
       "occurrence": "$latchlockingliprivet",
       "translate": [
          9,
          0,
          0
       ]
    }
    

Build information

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