Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

1.3 KB
Raw Blame
{
 "commands": [
  {
   "command": "solid.box",
   "params": {
    "length": 40,
    "width": 20,
    "height": 10,
    "corner": [
     -20,
     -10,
     0
    ],
    "body_name": "Plate"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      0.0,
      10.0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Slot"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -7,
      3
     ],
     [
      7,
      3
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     7,
     0
    ],
    "start": [
     10,
     0
    ],
    "end": [
     7,
     3
    ]
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     -7,
     0
    ],
    "start": [
     -7,
     3
    ],
    "end": [
     -10,
     0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -10,
      0
     ],
     [
      10,
      0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.revolve",
   "params": {
    "axis": "x",
    "angle": "360 deg",
    "operation": "cut"
   }
  }
 ]
}