Skip to content

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

840 B
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Sheet sketch"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     0,
     0
    ],
    "p1": [
     20,
     20
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "surface.patch",
   "params": {
    "sketch": "Sheet sketch",
    "body_name": "Sheet"
   }
  },
  {
   "command": "surface.trim",
   "params": {
    "body": "Sheet",
    "plane": {
     "origin": [
      10,
      0,
      0
     ],
     "normal": [
      1,
      0,
      0
     ]
    },
    "keep": [
     5,
     5,
     0
    ]
   }
  }
 ]
}