Skip to content

BASIC / BRACKET

Bracket

An L-shaped extrusion with two mounting holes

Built in SolidCraft 0.49.0 9 commands

Model preview

Bracket SolidCraft build

An XZ polygon extruded along Y with an edge fillet and two native SolidCraft Hole features.

Key dimensions: 60 mm wide; 6 mm wall; two Ø8 mm holes

Open in SolidCraft Web

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

SCPF source

The exact SCPF Python source declared by this build variant.

scpf/model.py
class Bracket:
    width = 60
    thickness = 6

    def build(self):
        with Sketch(name="Profile", plane="XZ") as sketch:
            Polygon2D(
                [(0, 0), (40, 0), (40, self.thickness),
                 (self.thickness, self.thickness),
                 (self.thickness, 30), (0, 30)],
                plane="XZ",
            )
        body = sketch.extrude(-self.width)
        body = body.fillet(2, edges=[(40, -half(self.width), -self.thickness)])

        for y in (-15, -45):
            body = body + Hole(d=8, depth=self.thickness).at(25, y, 0)
        return body
SolidCraft command sequence 9 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "60",
       "name": "width",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "6",
       "name": "thickness",
       "unit": "mm"
    }
    
  3. sketch.create
    {
       "name": "Profile",
       "plane": "XZ"
    }
    
  4. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d",
          "e",
          "f"
       ],
       "points": [
          [
             0,
             0
          ],
          [
             40,
             0
          ],
          [
             40,
             "thickness"
          ],
          [
             "thickness",
             "thickness"
          ],
          [
             "thickness",
             30
          ],
          [
             0,
             30
          ]
       ]
    }
    
  5. sketch.finish
  6. solid.extrude
    {
       "body_name": "Bracket",
       "direction": "negative",
       "distance": "width"
    }
    
  7. solid.fillet
    {
       "body": "Bracket",
       "edges": [
          [
             40,
             -30,
             -6
          ]
       ],
       "radius": 2
    }
    
  8. solid.hole
    {
       "depth": "thickness",
       "diameter": 8,
       "position": [
          25,
          -15,
          0
       ],
       "targets": [
          "Bracket"
       ]
    }
    
  9. solid.hole
    {
       "depth": "thickness",
       "diameter": 8,
       "position": [
          25,
          -45,
          0
       ],
       "targets": [
          "Bracket"
       ]
    }
    

Build information

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