Skip to content

BASIC / SIMPLE-BOX

Simple Box

One parameterized native Forge box

Built in SolidCraft 0.49.0 4 commands

Model preview

Simple Box SolidCraft build

Minimal model proving that one independent model root can be authored with Forge and built without repository-specific Python orchestration.

Key dimensions: 40 × 30 × 10 mm

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
"""Smallest template Forge model: one parameterized native Box."""


class SimpleBox:
    length = 40.0
    width = 30.0
    height = 10.0

    def build(self):
        return Box(self.length, self.width, self.height, anchor=Anchor.BOTTOM)


SimpleBox()
SolidCraft command sequence 4 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "40",
       "name": "length",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "30",
       "name": "width",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "10",
       "name": "height",
       "unit": "mm"
    }
    
  4. solid.box
    {
       "body_name": "SimpleBox",
       "corner": [
          "-length / 2",
          "-width / 2",
          0
       ],
       "height": "height",
       "length": "length",
       "width": "width"
    }
    

Build information

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