Skip to content

COMPONENTS / FLEX-BENCH-DOG

FlexBenchDog

Passive 20 mm MFT bench dog with a four-segment flex stem

Built in SolidCraft 0.49.0 56 commands

Model preview

FlexBenchDog SolidCraft build

A printable bench dog inferred from the Mini-MFT reference image: 20 mm above and 20 mm below the worktop, with one full-length tapered insert from Ø20.0 at the worktop to Ø20.2 at the free end. A compact Ø22 stop collar seats on the 45° chamfer of a nominal Ø20 MFT hole. Two perpendicular slots create four flexible legs, with R0.5 mm relief around the central cross. The top face carries a recessed BrainBox cube/box wireframe.

Key dimensions: 20.0 mm nominal hole; Ø22 × 1.5 mm stop collar; 1.5 mm flex slots; Ø20.0 → Ø20.2 taper

Open in SolidCraft Web

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

Underside flex-root detail

SolidCraft underside view used to review the four R0.5 material-side fillets around the central cross.

Underside — central cross and R0.5 inner corners FlexBenchDog underside showing central cross and rounded inner corners

SCPF source

The exact SCPF Python source declared by this build variant.

scpf/model.py
"""Reusable 20 mm flex bench dog based on the supplied Mini-MFT reference image.

The CAD orientation is functional rather than a prescribed print orientation:
the worktop surface is Z=0, the insert extends 20 mm downward and the dog rises
20 mm upward. The insert tapers continuously from Ø20.0 at the worktop to
Ø20.2 at the free end, providing passive spring preload after the stem is split
into four flexible quadrants.
"""

from scpf import (
    Anchor,
    Cone,
    Cylinder,
    Polygon2D,
    Rectangle2D,
    Sketch,
    component,
)


def _logo_strip_points(p0, p1, width):
    """Return one square-ended polygon strip around a logo centreline."""
    x0, y0 = p0
    x1, y1 = p1
    dx = x1 - x0
    dy = y1 - y0
    length = (dx * dx + dy * dy) ** 0.5
    half_width = width / 2.0

    ux = dx / length
    uy = dy / length
    px = -uy * half_width
    py = ux * half_width
    ex = ux * half_width
    ey = uy * half_width

    # Extend both ends by half the line width. Neighbouring ribs overlap at
    # cube vertices without combining intersecting loops in one Sketch.
    return (
        (x0 - ex + px, y0 - ey + py),
        (x1 + ex + px, y1 + ey + py),
        (x1 + ex - px, y1 + ey - py),
        (x0 - ex - px, y0 - ey - py),
    )


@component
class FlexBenchDog:
    hole_diameter = 20.0
    interference = 0.20
    rim_diameter = 22.0
    slot_width = 1.5
    slot_corner_radius = 0.5

    ABOVE_WORKTOP = 20.0
    RIM_THICKNESS = 1.5
    RIM_SEAT_CHAMFER = 1.0
    INSERTION_LENGTH = 20.0
    SLOT_LENGTH = 16.0
    TOP_CHAMFER = 0.6
    BOTTOM_CHAMFER = 1.0
    LOGO_LINE_WIDTH = 0.6
    LOGO_DEPTH = 0.6

    LOGO_SEGMENTS = (
        ((0.0, 4.0), (3.5, 2.0)),
        ((3.5, 2.0), (3.5, -2.0)),
        ((3.5, -2.0), (0.0, -4.0)),
        ((0.0, -4.0), (-3.5, -2.0)),
        ((-3.5, -2.0), (-3.5, 2.0)),
        ((-3.5, 2.0), (0.0, 4.0)),
        ((0.0, 0.0), (0.0, 4.0)),
        ((0.0, 0.0), (3.5, -2.0)),
        ((0.0, 0.0), (-3.5, -2.0)),
    )

    def build(self):
        # The stop collar sits on the small 45-degree mouth chamfer of a
        # nominal 20 mm MFT hole. Its Ø22 × 1.5 mm envelope is chamfered only
        # at the lower outside edge: 1 mm radial difference gives a 1 mm axial
        # 45-degree seat, leaving a 0.5 mm straight Ø22 land above it.
        rim = Cylinder(
            d=self.rim_diameter,
            h=self.RIM_THICKNESS,
            anchor=Anchor.BOTTOM,
        )
        rim = rim.chamfer(
            self.RIM_SEAT_CHAMFER,
            edges=[(self.rim_diameter / 2, 0, 0)],
        )

        working_height = self.ABOVE_WORKTOP - self.RIM_THICKNESS
        upper = Cylinder(
            d=self.hole_diameter,
            h=working_height,
            anchor=Anchor.BOTTOM,
        ).at(0, 0, self.RIM_THICKNESS, anchor=Anchor.BOTTOM)
        dog = rim + upper

        # Full-length insertion taper: Ø20.2 at the free end (Z=-20) to
        # nominal Ø20.0 at the worktop datum (Z=0). Forge #746 provides the
        # native joined-Cone path; no stepped cylindrical tip remains.
        insert = Cone(
            d=self.hole_diameter + self.interference,
            top_d=self.hole_diameter,
            h=self.INSERTION_LENGTH,
            anchor=Anchor.BOTTOM,
        ).at(0, 0, -self.INSERTION_LENGTH, anchor=Anchor.BOTTOM)
        dog = dog + insert

        # Give the complete free insert edge a larger lead-in before splitting
        # it into four flexible legs.
        dog = dog.chamfer(
            self.BOTTOM_CHAMFER,
            edges=[(
                (self.hole_diameter + self.interference) / 2,
                0,
                -self.INSERTION_LENGTH,
            )],
        )

        # Two native sketch cuts form the cross slots. They start at the free
        # end and stop 4 mm below the worktop, leaving a solid flex root.
        slot_span = self.hole_diameter + self.interference + 2.0

        with Sketch(
            name="Flex slot X",
            on=dog,
            plane="XY",
            origin=(0, 0, -self.INSERTION_LENGTH),
        ) as slot_x:
            Rectangle2D(slot_span, self.slot_width)
        dog = dog - slot_x.extrude(self.SLOT_LENGTH)

        with Sketch(
            name="Flex slot Y",
            on=dog,
            plane="XY",
            origin=(0, 0, -self.INSERTION_LENGTH),
        ) as slot_y:
            Rectangle2D(self.slot_width, slot_span)
        dog = dog - slot_y.extrude(self.SLOT_LENGTH)

        # Round only the four vertical material corners around the central
        # cross. The rectangular slot dimensions and 4 mm solid root remain
        # unchanged.
        slot_half = self.slot_width / 2
        slot_edge_z = -self.INSERTION_LENGTH + self.SLOT_LENGTH / 2
        dog = dog.fillet(
            self.slot_corner_radius,
            edges=[
                (slot_half, slot_half, slot_edge_z),
                (-slot_half, slot_half, slot_edge_z),
                (-slot_half, -slot_half, slot_edge_z),
                (slot_half, -slot_half, slot_edge_z),
            ],
        )

        # Light chamfer on the visible upper perimeter.
        dog = dog.chamfer(
            self.TOP_CHAMFER,
            edges=[(self.hole_diameter / 2, 0, self.ABOVE_WORKTOP)],
        )

        # Recess the accepted BrainBox wireframe as nine independent closed
        # polygon strips. Each strip keeps the accepted centreline and 0.6 mm
        # width, extends half a line width beyond each endpoint, and is cut
        # independently so intersecting ribs cannot create filled face regions.
        for index, (p0, p1) in enumerate(self.LOGO_SEGMENTS, start=1):
            with Sketch(
                name=f"Top logo rib {index}",
                on=dog,
                plane="XY",
                origin=(0, 0, self.ABOVE_WORKTOP),
            ) as rib:
                Polygon2D(
                    _logo_strip_points(p0, p1, self.LOGO_LINE_WIDTH),
                    plane="XY",
                )
            dog = dog - rib.extrude(-self.LOGO_DEPTH)

        return dog
SolidCraft command sequence 56 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "22",
       "name": "rim_diameter",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "20",
       "name": "hole_diameter",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "0.2",
       "name": "interference",
       "unit": "mm"
    }
    
  4. parameters.add
    {
       "expression": "1.5",
       "name": "slot_width",
       "unit": "mm"
    }
    
  5. parameters.add
    {
       "expression": "0.5",
       "name": "slot_corner_radius",
       "unit": "mm"
    }
    
  6. solid.cylinder
    {
       "axis": "Z",
       "base": [
          0,
          0,
          0
       ],
       "body_name": "FlexBenchDog",
       "diameter": "rim_diameter",
       "height": 1.5,
       "operation": "new"
    }
    
  7. solid.chamfer
    {
       "body": "FlexBenchDog",
       "distance": 1,
       "edges": [
          [
             11,
             0,
             0
          ]
       ]
    }
    
  8. solid.cylinder
    {
       "axis": "Z",
       "base": [
          0,
          0,
          1.5
       ],
       "diameter": "hole_diameter",
       "height": 18.5,
       "operation": "join",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  9. solid.cone
    {
       "axis": "Z",
       "base": [
          0,
          0,
          -20
       ],
       "diameter": "hole_diameter + (interference)",
       "height": 20,
       "operation": "join",
       "targets": [
          "FlexBenchDog"
       ],
       "top_diameter": "hole_diameter"
    }
    
  10. solid.chamfer
    {
       "body": "FlexBenchDog",
       "distance": 1,
       "edges": [
          [
             10.1,
             0,
             -20
          ]
       ]
    }
    
  11. sketch.create
    {
       "name": "Flex slot X",
       "plane": {
          "origin": [
             0,
             0,
             -20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  12. sketch.rectangle.two_point
    {
       "p0": [
          "(-((hole_diameter + (interference) + 2 mm) / 2))",
          "(-(slot_width / 2))"
       ],
       "p1": [
          "((hole_diameter + (interference) + 2 mm) / 2)",
          "(slot_width / 2)"
       ]
    }
    
  13. sketch.finish
  14. solid.extrude
    {
       "direction": "positive",
       "distance": 16,
       "name": "Flex slot X",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  15. sketch.create
    {
       "name": "Flex slot Y",
       "plane": {
          "origin": [
             0,
             0,
             -20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  16. sketch.rectangle.two_point
    {
       "p0": [
          "(-(slot_width / 2))",
          "(-((hole_diameter + (interference) + 2 mm) / 2))"
       ],
       "p1": [
          "(slot_width / 2)",
          "((hole_diameter + (interference) + 2 mm) / 2)"
       ]
    }
    
  17. sketch.finish
  18. solid.extrude
    {
       "direction": "positive",
       "distance": 16,
       "name": "Flex slot Y",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  19. solid.fillet
    {
       "body": "FlexBenchDog",
       "edges": [
          [
             0.75,
             0.75,
             -12
          ],
          [
             -0.75,
             0.75,
             -12
          ],
          [
             -0.75,
             -0.75,
             -12
          ],
          [
             0.75,
             -0.75,
             -12
          ]
       ],
       "radius": "slot_corner_radius"
    }
    
  20. solid.chamfer
    {
       "body": "FlexBenchDog",
       "distance": 0.6,
       "edges": [
          [
             10,
             0,
             20
          ]
       ]
    }
    
  21. sketch.create
    {
       "name": "Top logo rib 1",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  22. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -0.11163126113028762,
             4.409314624144388
          ],
          [
             3.9093146241443884,
             2.1116312611302877
          ],
          [
             3.6116312611302877,
             1.590685375855612
          ],
          [
             -0.4093146241443879,
             3.888368738869712
          ]
       ]
    }
    
  23. sketch.finish
  24. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 1",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  25. sketch.create
    {
       "name": "Top logo rib 2",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  26. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             3.8,
             2.3
          ],
          [
             3.8,
             -2.3
          ],
          [
             3.2,
             -2.3
          ],
          [
             3.2,
             2.3
          ]
       ]
    }
    
  27. sketch.finish
  28. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 2",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  29. sketch.create
    {
       "name": "Top logo rib 3",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  30. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             3.9093146241443884,
             -2.1116312611302877
          ],
          [
             -0.11163126113028762,
             -4.409314624144388
          ],
          [
             -0.4093146241443879,
             -3.888368738869712
          ],
          [
             3.6116312611302877,
             -1.590685375855612
          ]
       ]
    }
    
  31. sketch.finish
  32. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 3",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  33. sketch.create
    {
       "name": "Top logo rib 4",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  34. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             0.11163126113028762,
             -4.409314624144388
          ],
          [
             -3.9093146241443884,
             -2.1116312611302877
          ],
          [
             -3.6116312611302877,
             -1.590685375855612
          ],
          [
             0.4093146241443879,
             -3.888368738869712
          ]
       ]
    }
    
  35. sketch.finish
  36. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 4",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  37. sketch.create
    {
       "name": "Top logo rib 5",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  38. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -3.8,
             -2.3
          ],
          [
             -3.8,
             2.3
          ],
          [
             -3.2,
             2.3
          ],
          [
             -3.2,
             -2.3
          ]
       ]
    }
    
  39. sketch.finish
  40. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 5",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  41. sketch.create
    {
       "name": "Top logo rib 6",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  42. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -3.9093146241443884,
             2.1116312611302877
          ],
          [
             0.11163126113028762,
             4.409314624144388
          ],
          [
             0.4093146241443879,
             3.888368738869712
          ],
          [
             -3.6116312611302877,
             1.590685375855612
          ]
       ]
    }
    
  43. sketch.finish
  44. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 6",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  45. sketch.create
    {
       "name": "Top logo rib 7",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  46. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -0.3,
             -0.3
          ],
          [
             -0.3,
             4.3
          ],
          [
             0.3,
             4.3
          ],
          [
             0.3,
             -0.3
          ]
       ]
    }
    
  47. sketch.finish
  48. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 7",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  49. sketch.create
    {
       "name": "Top logo rib 8",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  50. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -0.11163126113028762,
             0.4093146241443879
          ],
          [
             3.9093146241443884,
             -1.8883687388697126
          ],
          [
             3.6116312611302877,
             -2.409314624144388
          ],
          [
             -0.4093146241443879,
             -0.11163126113028762
          ]
       ]
    }
    
  51. sketch.finish
  52. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 8",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    
  53. sketch.create
    {
       "name": "Top logo rib 9",
       "plane": {
          "origin": [
             0,
             0,
             20
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  54. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             0.4093146241443879,
             -0.11163126113028762
          ],
          [
             -3.6116312611302877,
             -2.409314624144388
          ],
          [
             -3.9093146241443884,
             -1.8883687388697126
          ],
          [
             0.11163126113028762,
             0.4093146241443879
          ]
       ]
    }
    
  55. sketch.finish
  56. solid.extrude
    {
       "direction": "negative",
       "distance": 0.6,
       "name": "Top logo rib 9",
       "operation": "cut",
       "targets": [
          "FlexBenchDog"
       ]
    }
    

Build information

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