COMPONENTS / LATCH
Latch
Source-faithful native sheet-metal over-centre latch
Model preview
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
SolidCraft model
Open in SolidCraft Web
The editable .sc model is loaded directly from the accepted build branch.
Model context
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.
Design reference
Native latch review
These durable views verify the source-derived sheet folds, pivot geometry and locking spring against the native reference.
Source
SCPF source
The exact SCPF Python source declared by this build variant.
"""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()
Generated output SolidCraft command sequence 199 generated operations · expand to inspect
parameters.add{ "expression": "2", "name": "d1_LatchMountingFoot_thickness", "unit": "mm" }parameters.add{ "expression": "0.6", "name": "d1_LatchMountingFoot_bend_radius", "unit": "mm" }parameters.add{ "expression": "0.4", "name": "d1_LatchMountingFoot_k_factor", "unit": "" }parameters.add{ "expression": "4.2", "name": "d1_LatchMountingFoot_mounting_hole_diameter", "unit": "mm" }parameters.add{ "expression": "4.1", "name": "d1_LatchMountingFoot_hinge_hole_diameter", "unit": "mm" }parameters.add{ "expression": "3.2", "name": "d1_LatchMountingFoot_locking_rivet_hole_diameter", "unit": "mm" }component.create{ "grounded": true, "name": "LatchMountingFoot" }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" }sketch.create{ "name": "d1_LatchMountingFoot__Mounting foot blank", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ 27, -8.25 ], [ 40, -8.25 ] ] }sketch.line{ "connect": true, "points": [ [ 40, -8.25 ], [ 40, -10.449114857512855 ] ] }sketch.line{ "connect": true, "points": [ [ 40, -10.449114857512855 ], [ 41.75, -15.299114857512857 ] ] }sketch.arc.center_point{ "center": [ 45.5, -15.299114857512857 ], "clockwise": false, "connect": true, "end": [ 49.25, -15.299114857512857 ], "start": [ 41.75, -15.299114857512857 ] }sketch.line{ "connect": true, "points": [ [ 49.25, -15.299114857512857 ], [ 51, -10.449114857512855 ] ] }sketch.line{ "connect": true, "points": [ [ 51, -10.449114857512855 ], [ 51, -8.25 ] ] }sketch.line{ "connect": true, "points": [ [ 51, -8.25 ], [ 55.5, -8.25 ] ] }sketch.arc.center_point{ "center": [ 55.5, -5.25 ], "clockwise": false, "connect": true, "end": [ 58.5, -5.25 ], "start": [ 55.5, -8.25 ] }sketch.line{ "connect": true, "points": [ [ 58.5, -5.25 ], [ 58.5, 5.25 ] ] }sketch.arc.center_point{ "center": [ 55.5, 5.25 ], "clockwise": false, "connect": true, "end": [ 55.5, 8.25 ], "start": [ 58.5, 5.25 ] }sketch.line{ "connect": true, "points": [ [ 55.5, 8.25 ], [ 51, 8.25 ] ] }sketch.line{ "connect": true, "points": [ [ 51, 8.25 ], [ 51, 10.449114857512855 ] ] }sketch.line{ "connect": true, "points": [ [ 51, 10.449114857512855 ], [ 49.25, 15.299114857512857 ] ] }sketch.arc.center_point{ "center": [ 45.5, 15.299114857512857 ], "clockwise": false, "connect": true, "end": [ 41.75, 15.299114857512857 ], "start": [ 49.25, 15.299114857512857 ] }sketch.line{ "connect": true, "points": [ [ 41.75, 15.299114857512857 ], [ 40, 10.449114857512855 ] ] }sketch.line{ "connect": true, "points": [ [ 40, 10.449114857512855 ], [ 40, 8.25 ] ] }sketch.line{ "connect": true, "points": [ [ 40, 8.25 ], [ 27, 8.25 ] ] }sketch.line{ "connect": true, "points": [ [ 27, 8.25 ], [ 25.5, 3.8 ] ] }sketch.line{ "connect": true, "points": [ [ 25.5, 3.8 ], [ 15.5, 3.8 ] ] }sketch.line{ "connect": true, "points": [ [ 15.5, 3.8 ], [ 15.5, -3.8 ] ] }sketch.line{ "connect": true, "points": [ [ 15.5, -3.8 ], [ 25.5, -3.8 ] ] }sketch.line{ "connect": true, "points": [ [ 25.5, -3.8 ], [ 27, -8.25 ] ] }sketch.finishsheet.flange{ "body_name": "LatchMountingFoot", "rule": "Mounting foot 2 mm", "sketch": "d1_LatchMountingFoot__Mounting foot blank", "type": "base" }solid.hole{ "diameter": "d1_LatchMountingFoot_mounting_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ 38.5, 0, "d1_LatchMountingFoot_thickness" ], "targets": [ "LatchMountingFoot" ] }solid.hole{ "diameter": "d1_LatchMountingFoot_mounting_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ 52.5, 0, "d1_LatchMountingFoot_thickness" ], "targets": [ "LatchMountingFoot" ] }solid.hole{ "diameter": "d1_LatchMountingFoot_hinge_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ 45.5, -15.299114857512857, "d1_LatchMountingFoot_thickness" ], "targets": [ "LatchMountingFoot" ] }solid.hole{ "diameter": "d1_LatchMountingFoot_hinge_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ 45.5, 15.299114857512857, "d1_LatchMountingFoot_thickness" ], "targets": [ "LatchMountingFoot" ] }sheet.fold{ "angle": 90, "body": "LatchMountingFoot", "fixed": [ 29.5, 0, 0 ], "flip": false, "points": [ [ 40, 8.25, 0 ], [ 51, 8.25, 0 ] ], "position": "start" }sheet.fold{ "angle": 90, "body": "LatchMountingFoot", "fixed": [ 29.5, 0, 0 ], "flip": false, "points": [ [ 51, -8.25, 0 ], [ 40, -8.25, 0 ] ], "position": "start" }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" }sketch.create{ "name": "d1_LatchMountingFoot__Front hinge tab trim", "offset": -7, "plane": "XZ" }sketch.line{ "connect": true, "points": [ [ 14.5, -7.3 ], [ 17, -7.3 ] ] }sketch.arc.center_point{ "center": [ 20.5, -7.3 ], "clockwise": false, "connect": true, "end": [ 24, -7.3 ], "start": [ 17, -7.3 ] }sketch.line{ "connect": true, "points": [ [ 24, -7.3 ], [ 26.5, -7.3 ] ] }sketch.line{ "connect": true, "points": [ [ 26.5, -7.3 ], [ 26.5, -13.3 ] ] }sketch.line{ "connect": true, "points": [ [ 26.5, -13.3 ], [ 14.5, -13.3 ] ] }sketch.line{ "connect": true, "points": [ [ 14.5, -13.3 ], [ 14.5, -7.3 ] ] }sketch.finishsolid.extrude{ "direction": "positive", "distance": 14, "operation": "cut", "targets": [ "LatchMountingFoot" ] }solid.cylinder{ "axis": "Y", "base": [ 20.5, -7, 7.3 ], "diameter": 3.9, "height": 14, "operation": "cut", "targets": [ "LatchMountingFoot" ] }solid.cylinder{ "axis": "Z", "base": [ 45.5, 0, 0 ], "diameter": "d1_LatchMountingFoot_locking_rivet_hole_diameter", "height": 2.9, "operation": "cut", "targets": [ "LatchMountingFoot" ] }solid.cylinder{ "axis": "Z", "base": [ 45.5, 0, 0 ], "diameter": 4, "height": 0.4, "operation": "cut", "targets": [ "LatchMountingFoot" ] }material.create{ "color": "#B7BDC2", "density_g_cm3": 7.85, "name": "Galvanized steel" }material.assign{ "bodies": [ "LatchMountingFoot" ], "material": "Galvanized steel" }component.activate{ "component": "root" }parameters.add{ "expression": "1.6", "name": "d2_LatchHandle_thickness", "unit": "mm" }parameters.add{ "expression": "0.9", "name": "d2_LatchHandle_bend_radius", "unit": "mm" }parameters.add{ "expression": "0.4", "name": "d2_LatchHandle_k_factor", "unit": "" }component.create{ "grounded": false, "name": "LatchHandle" }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" }sketch.create{ "name": "d2_LatchHandle__Operating handle blank", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ 73, -8.169026343264141 ], [ 57, -17.76902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 57, -17.76902634326414 ], [ 26.3, -17.76902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 26.3, -17.76902634326414 ], [ 20.5, -16.46902634326414 ] ] }sketch.arc.center_point{ "center": [ 20.5, -12.869026343264142 ], "clockwise": true, "connect": true, "end": [ 20.5, -9.26902634326414 ], "start": [ 20.5, -16.46902634326414 ] }sketch.line{ "connect": true, "points": [ [ 20.5, -9.26902634326414 ], [ 25.3, -9.26902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 25.3, -9.26902634326414 ], [ 25.3, -5.75 ] ] }sketch.line{ "connect": true, "points": [ [ 25.3, -5.75 ], [ 25.3, 5.75 ] ] }sketch.line{ "connect": true, "points": [ [ 25.3, 5.75 ], [ 25.3, 9.26902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 25.3, 9.26902634326414 ], [ 20.5, 9.26902634326414 ] ] }sketch.arc.center_point{ "center": [ 20.5, 12.869026343264142 ], "clockwise": true, "connect": true, "end": [ 20.5, 16.46902634326414 ], "start": [ 20.5, 9.26902634326414 ] }sketch.line{ "connect": true, "points": [ [ 20.5, 16.46902634326414 ], [ 26.3, 17.76902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 26.3, 17.76902634326414 ], [ 57, 17.76902634326414 ] ] }sketch.line{ "connect": true, "points": [ [ 57, 17.76902634326414 ], [ 73, 8.169026343264141 ] ] }sketch.line{ "connect": true, "points": [ [ 73, 8.169026343264141 ], [ 73, -8.169026343264141 ] ] }sketch.finishsheet.flange{ "body_name": "LatchHandle", "rule": "Operating handle 1.6 mm", "sketch": "d2_LatchHandle__Operating handle blank", "type": "base" }solid.hole{ "diameter": 4.1, "direction": [ 0, 0, -1 ], "position": [ 33.5, -14.169026343264141, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }solid.hole{ "diameter": 4.1, "direction": [ 0, 0, -1 ], "position": [ 45.5, -12.71902634326414, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }solid.hole{ "diameter": 3.9, "direction": [ 0, 0, -1 ], "position": [ 20.5, -12.869026343264142, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }solid.hole{ "diameter": 4.1, "direction": [ 0, 0, -1 ], "position": [ 33.5, 14.169026343264141, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }solid.hole{ "diameter": 4.1, "direction": [ 0, 0, -1 ], "position": [ 45.5, 12.71902634326414, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }solid.hole{ "diameter": 3.9, "direction": [ 0, 0, -1 ], "position": [ 20.5, 12.869026343264142, "d2_LatchHandle_thickness" ], "targets": [ "LatchHandle" ] }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" }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" }sketch.create{ "name": "d2_LatchHandle__Locking lip opening", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ 56.55, -4.5 ], [ 60.35, -4.5 ] ] }sketch.line{ "connect": true, "points": [ [ 60.35, -4.5 ], [ 60.35, 4.5 ] ] }sketch.line{ "connect": true, "points": [ [ 60.35, 4.5 ], [ 56.55, 4.5 ] ] }sketch.line{ "connect": true, "points": [ [ 56.55, 4.5 ], [ 56.55, -4.5 ] ] }sketch.finishsolid.extrude{ "direction": "positive", "distance": 2, "operation": "cut", "targets": [ "LatchHandle" ] }material.assign{ "bodies": [ "LatchHandle" ], "material": "Galvanized steel" }component.activate{ "component": "root" }parameters.add{ "expression": "2", "name": "d3_LatchPullBail_thickness", "unit": "mm" }parameters.add{ "expression": "1", "name": "d3_LatchPullBail_bend_radius", "unit": "mm" }parameters.add{ "expression": "0.4", "name": "d3_LatchPullBail_k_factor", "unit": "" }parameters.add{ "expression": "4.1", "name": "d3_LatchPullBail_pin_hole_diameter", "unit": "mm" }component.create{ "grounded": false, "name": "LatchPullBail" }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" }sketch.create{ "name": "d3_LatchPullBail__Pull bail blank", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ -42.16287547531802, 2.2 ], [ 42.16287547531802, 2.2 ] ] }sketch.arc.center_point{ "center": [ 42.16287547531802, 6.85 ], "clockwise": false, "connect": true, "end": [ 42.16287547531802, 11.5 ], "start": [ 42.16287547531802, 2.2 ] }sketch.line{ "connect": true, "points": [ [ 42.16287547531802, 11.5 ], [ 28.077433388230816, 11.5 ] ] }sketch.line{ "connect": true, "points": [ [ 28.077433388230816, 11.5 ], [ 11.577433388230814, 7.1 ] ] }sketch.line{ "connect": true, "points": [ [ 11.577433388230814, 7.1 ], [ -11.577433388230814, 7.1 ] ] }sketch.line{ "connect": true, "points": [ [ -11.577433388230814, 7.1 ], [ -28.077433388230816, 11.5 ] ] }sketch.line{ "connect": true, "points": [ [ -28.077433388230816, 11.5 ], [ -42.16287547531802, 11.5 ] ] }sketch.arc.center_point{ "center": [ -42.16287547531802, 6.85 ], "clockwise": false, "connect": true, "end": [ -42.16287547531802, 2.2 ], "start": [ -42.16287547531802, 11.5 ] }sketch.finishsheet.flange{ "body_name": "LatchPullBail", "rule": "Pull bail 2 mm", "sketch": "d3_LatchPullBail__Pull bail blank", "type": "base" }solid.hole{ "diameter": "d3_LatchPullBail_pin_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ -42.16287547531801, 6, "d3_LatchPullBail_thickness" ], "targets": [ "LatchPullBail" ] }solid.hole{ "diameter": "d3_LatchPullBail_pin_hole_diameter", "direction": [ 0, 0, -1 ], "position": [ 42.16287547531801, 6, "d3_LatchPullBail_thickness" ], "targets": [ "LatchPullBail" ] }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" }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" }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" }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" }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" }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" }material.assign{ "bodies": [ "LatchPullBail" ], "material": "Galvanized steel" }component.activate{ "component": "root" }component.create{ "grounded": false, "name": "LatchBailRivetLeft" }sketch.create{ "name": "d4_LatchBailRivetLeft__Left bail rivet profile", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ 0, -6.25 ], [ 2.2, -6.25 ] ] }sketch.line{ "connect": true, "points": [ [ 2.2, -6.25 ], [ 2.45, -6.45 ] ] }sketch.line{ "connect": true, "points": [ [ 2.45, -6.45 ], [ 2.45, -6.63 ] ] }sketch.line{ "connect": true, "points": [ [ 2.45, -6.63 ], [ 2, -6.63 ] ] }sketch.line{ "connect": true, "points": [ [ 2, -6.63 ], [ 2, -10.47 ] ] }sketch.line{ "connect": true, "points": [ [ 2, -10.47 ], [ 2.6, -10.47 ] ] }sketch.line{ "connect": true, "points": [ [ 2.6, -10.47 ], [ 2.6, -10.92 ] ] }sketch.line{ "connect": true, "points": [ [ 2.6, -10.92 ], [ 2.25, -11.12 ] ] }sketch.line{ "connect": true, "points": [ [ 2.25, -11.12 ], [ 0, -11.12 ] ] }sketch.line{ "connect": true, "points": [ [ 0, -11.12 ], [ 0, -6.25 ] ] }sketch.finishsolid.revolve{ "angle": 360, "axis": "Y", "body_name": "LatchBailRivetLeft", "sketch": "d4_LatchBailRivetLeft__Left bail rivet profile" }material.assign{ "bodies": [ "LatchBailRivetLeft" ], "material": "Galvanized steel" }component.activate{ "component": "root" }component.create{ "grounded": false, "name": "LatchBailRivetRight" }sketch.create{ "name": "d5_LatchBailRivetRight__Right bail rivet profile", "plane": "XY" }sketch.line{ "connect": true, "points": [ [ 0, 6.25 ], [ 2.2, 6.25 ] ] }sketch.line{ "connect": true, "points": [ [ 2.2, 6.25 ], [ 2.45, 6.45 ] ] }sketch.line{ "connect": true, "points": [ [ 2.45, 6.45 ], [ 2.45, 6.63 ] ] }sketch.line{ "connect": true, "points": [ [ 2.45, 6.63 ], [ 2, 6.63 ] ] }sketch.line{ "connect": true, "points": [ [ 2, 6.63 ], [ 2, 10.47 ] ] }sketch.line{ "connect": true, "points": [ [ 2, 10.47 ], [ 2.6, 10.47 ] ] }sketch.line{ "connect": true, "points": [ [ 2.6, 10.47 ], [ 2.6, 10.92 ] ] }sketch.line{ "connect": true, "points": [ [ 2.6, 10.92 ], [ 2.25, 11.12 ] ] }sketch.line{ "connect": true, "points": [ [ 2.25, 11.12 ], [ 0, 11.12 ] ] }sketch.line{ "connect": true, "points": [ [ 0, 11.12 ], [ 0, 6.25 ] ] }sketch.finishsolid.revolve{ "angle": 360, "axis": "Y", "body_name": "LatchBailRivetRight", "sketch": "d5_LatchBailRivetRight__Right bail rivet profile" }material.assign{ "bodies": [ "LatchBailRivetRight" ], "material": "Galvanized steel" }component.activate{ "component": "root" }parameters.add{ "expression": "16.9", "name": "d6_LatchHingePin_length", "unit": "mm" }parameters.add{ "expression": "3.8", "name": "d6_LatchHingePin_diameter", "unit": "mm" }component.create{ "grounded": false, "name": "LatchHingePin" }solid.cylinder{ "axis": "Y", "base": [ 0, "-(d6_LatchHingePin_length / 2)", 0 ], "body_name": "LatchHingePin", "diameter": "d6_LatchHingePin_diameter", "height": "d6_LatchHingePin_length", "operation": "new" }material.assign{ "bodies": [ "LatchHingePin" ], "material": "Galvanized steel" }component.activate{ "component": "root" }parameters.add{ "expression": "8.4", "name": "d7_LatchLockingLip_width", "unit": "mm" }parameters.add{ "expression": "0.7", "name": "d7_LatchLockingLip_thickness", "unit": "mm" }parameters.add{ "expression": "0.8", "name": "d7_LatchLockingLip_bend_radius", "unit": "mm" }parameters.add{ "expression": "0.42", "name": "d7_LatchLockingLip_k_factor", "unit": "" }component.create{ "grounded": false, "name": "LatchLockingLip" }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" }sketch.create{ "name": "d7_LatchLockingLip__Locking lip contour", "plane": "XZ" }sketch.line{ "connect": true, "ids": [ "l1" ], "points": [ [ 43, -2 ], [ 56.85, -2 ] ] }sketch.arc.tangent{ "curve": "l1", "end": [ 58.35, -3.5 ], "start": "l1.end" }sketch.line{ "connect": true, "ids": [ "l2" ], "points": [ [ 58.35, -3.5 ], [ 58.35, -16.3 ] ] }sketch.arc.tangent{ "curve": "l2", "end": [ 56.41340572836789, -14.61654428313933 ], "start": "l2.end" }sketch.finishsheet.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" }solid.cylinder{ "axis": "Z", "base": [ 45.5, 4.2, 0 ], "diameter": 3.2, "height": 2.9, "operation": "cut", "targets": [ "LatchLockingLip" ] }material.create{ "color": "#9EA5AB", "density_g_cm3": 7.85, "name": "Spring steel" }material.assign{ "bodies": [ "LatchLockingLip" ], "material": "Spring steel" }component.activate{ "component": "root" }component.create{ "grounded": false, "name": "LatchLockingLipRivet" }sketch.create{ "name": "d8_LatchLockingLipRivet__Locking lip rivet profile", "plane": "XZ" }sketch.line{ "connect": true, "points": [ [ 0, 0 ], [ 1.95, 0 ] ] }sketch.line{ "connect": true, "points": [ [ 1.95, 0 ], [ 1.95, -0.37 ] ] }sketch.line{ "connect": true, "points": [ [ 1.95, -0.37 ], [ 1.55, -0.37 ] ] }sketch.line{ "connect": true, "points": [ [ 1.55, -0.37 ], [ 1.55, -2.72 ] ] }sketch.line{ "connect": true, "points": [ [ 1.55, -2.72 ], [ 2.15, -2.72 ] ] }sketch.line{ "connect": true, "points": [ [ 2.15, -2.72 ], [ 2.15, -3.04 ] ] }sketch.line{ "connect": true, "points": [ [ 2.15, -3.04 ], [ 1.85, -3.24 ] ] }sketch.line{ "connect": true, "points": [ [ 1.85, -3.24 ], [ 0, -3.24 ] ] }sketch.line{ "connect": true, "points": [ [ 0, -3.24 ], [ 0, 0 ] ] }sketch.finishsolid.revolve{ "angle": 360, "axis": "Z", "body_name": "LatchLockingLipRivet", "sketch": "d8_LatchLockingLipRivet__Locking lip rivet profile" }material.assign{ "bodies": [ "LatchLockingLipRivet" ], "material": "Galvanized steel" }component.activate{ "component": "root" }occurrence.move{ "move_grounded": true, "occurrence": "$latchmountingfoot", "translate": [ -36.5, 0, 0 ] }occurrence.move{ "angle": "180 deg", "axis": [ 1, 0, 0 ], "occurrence": "$latchhandle", "translate": [ -36.5, 0, 14.5 ] }occurrence.move{ "angle": "120 deg", "axis": [ 1, 1, 1 ], "occurrence": "$latchpullbail", "translate": [ -36.5, 0, 0 ] }occurrence.move{ "occurrence": "$latchbailrivetleft", "translate": [ -3, 0, 6 ] }occurrence.move{ "occurrence": "$latchbailrivetright", "translate": [ -3, 0, 6 ] }occurrence.move{ "occurrence": "$latchhingepin", "translate": [ -16, 0, 7.3 ] }occurrence.move{ "occurrence": "$latchlockinglip", "translate": [ -36.5, -4.2, 0 ] }occurrence.move{ "occurrence": "$latchlockingliprivet", "translate": [ 9, 0, 0 ] }
Durable build evidence
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


