Skip to content

BASIC / VENT-PLATE

Vent Plate

One source vent repeated by a native 6 × 3 feature pattern

Built in SolidCraft 0.49.0 10 commands

Model preview

Vent Plate SolidCraft build

Recreates the SolidCraft Vent Plate example with a rounded 120 × 80 × 4 mm plate, one rectangular source cut and one native two-direction rectangular pattern.

Key dimensions: 120 × 80 × 4 mm; R8; 6 × 3 vents; 16 × 22 mm pitch

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
"""Vent Plate from the SolidCraft example, using one native feature pattern.

The source cut is authored once. SCPF 0.6.1 lowers rectangular_pattern()
directly to SolidCraft's solid.pattern.rectangular history feature.
"""


class Plate:
    cols = 6
    rows = 3
    pitch = 16.0

    def build(self):
        # Match the source SolidCraft box corner [0, 0, 0].
        plate = Box(120, 80, 4).at(
            60, 40, 0,
            anchor=Anchor.BOTTOM,
        )
        plate = plate.fillet(8, edges=Edges.VERTICAL)

        # The source rectangle is X=18..24, Y=12..26. The attached sketch
        # coordinates are relative to the 120 x 80 plate centre (60, 40).
        with Sketch(name="Vent", on=plate, parent=Anchor.BOTTOM) as vent:
            vent.add(
                Rectangle2D(6, 14),
                offset=(-39, -21),
            )

        source_cut = vent.extrude(4)
        plate = plate - source_cut

        return plate.rectangular_pattern(
            source_cut,
            count=self.cols,
            spacing=self.pitch,
            direction=Axis.X,
            count2=self.rows,
            spacing2=22,
            direction2=Axis.Y,
        )
SolidCraft command sequence 10 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "6",
       "name": "cols",
       "unit": ""
    }
    
  2. parameters.add
    {
       "expression": "16",
       "name": "pitch",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "3",
       "name": "rows",
       "unit": ""
    }
    
  4. solid.box
    {
       "body_name": "Plate",
       "corner": [
          0,
          0,
          0
       ],
       "height": 4,
       "length": 120,
       "width": 80
    }
    
  5. solid.fillet
    {
       "body": "Plate",
       "edges": [
          [
             0,
             0,
             2
          ],
          [
             120,
             0,
             2
          ],
          [
             120,
             80,
             2
          ],
          [
             0,
             80,
             2
          ]
       ],
       "radius": 8
    }
    
  6. sketch.create
    {
       "name": "Vent",
       "plane": "XY"
    }
    
  7. sketch.rectangle.two_point
    {
       "p0": [
          18,
          12
       ],
       "p1": [
          24,
          26
       ]
    }
    
  8. sketch.finish
  9. solid.extrude
    {
       "direction": "positive",
       "distance": 4,
       "name": "Vent",
       "operation": "cut",
       "targets": [
          "Plate"
       ]
    }
    
  10. solid.pattern.rectangular
    {
       "alignment": "right",
       "alignment2": "right",
       "count1": "cols",
       "count2": "rows",
       "dir1": [
          1,
          0,
          0
       ],
       "dir2": [
          0,
          1,
          0
       ],
       "features": [
          "Vent"
       ],
       "reversed": false,
       "reversed2": false,
       "spacing1": "pitch",
       "spacing2": 22
    }
    

Build information

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