Skip to content

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

996 B
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "Path"
   }
  },
  {
   "command": "sketch.spline.control_point",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      0,
      20
     ],
     [
      20,
      20
     ],
     [
      20,
      40
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Square"
   }
  },
  {
   "command": "sketch.rectangle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "corner": [
     2,
     2
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.sweep",
   "params": {
    "sketch": "Square",
    "path_sketch": "Path",
    "path": [
     "s1"
    ]
   }
  }
 ]
}