Skip to content

BASIC / PLATE

Plate

A rounded plate with four holes

Built in SolidCraft 0.49.0 9 commands

Model preview

Plate SolidCraft build

A feature-based plate: box, four vertical fillets and four through holes.

Key dimensions: 100 × 60 × 10 mm; four Ø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 Plate:
    length = 100
    width = 60
    thickness = 10

    def build(self):
        body = Box(self.length, self.width, self.thickness, anchor=Anchor.BOTTOM)
        body = body.fillet(2, edges=Edges.VERTICAL)

        # Explicit world positions keep this compact comparison model simple.
        for x, y in ((-35, -15), (35, -15), (35, 15), (-35, 15)):
            body = body + Hole(
                d=8, depth=Depth.THROUGH_ALL
            ).at(x, y, self.thickness)
        return body
SolidCraft command sequence 9 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "100",
       "name": "length",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "60",
       "name": "width",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "10",
       "name": "thickness",
       "unit": "mm"
    }
    
  4. solid.box
    {
       "body_name": "Plate",
       "corner": [
          "-length / 2",
          "-width / 2",
          0
       ],
       "height": "thickness",
       "length": "length",
       "width": "width"
    }
    
  5. solid.fillet
    {
       "body": "Plate",
       "edges": [
          [
             -50,
             -30,
             5
          ],
          [
             50,
             -30,
             5
          ],
          [
             50,
             30,
             5
          ],
          [
             -50,
             30,
             5
          ]
       ],
       "radius": 2
    }
    
  6. solid.hole
    {
       "diameter": 8,
       "position": [
          -35,
          -15,
          10
       ],
       "targets": [
          "Plate"
       ]
    }
    
  7. solid.hole
    {
       "diameter": 8,
       "position": [
          35,
          -15,
          10
       ],
       "targets": [
          "Plate"
       ]
    }
    
  8. solid.hole
    {
       "diameter": 8,
       "position": [
          35,
          15,
          10
       ],
       "targets": [
          "Plate"
       ]
    }
    
  9. solid.hole
    {
       "diameter": 8,
       "position": [
          -35,
          15,
          10
       ],
       "targets": [
          "Plate"
       ]
    }
    

Build information

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