Skip to content

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

1.2 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      40,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    }
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      60,
      0
     ],
     [
      60,
      8
     ],
     [
      8,
      8
     ],
     [
      8,
      50
     ],
     [
      0,
      50
     ]
    ],
    "closed": true
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "distance": 40,
    "body_name": "Part"
   }
  },
  {
   "command": "solid.fillet",
   "params": {
    "edges": [
     [
      8,
      20,
      8
     ]
    ],
    "radius": 5
   }
  },
  {
   "command": "solid.chamfer",
   "params": {
    "edges": [
     [
      0,
      20,
      0
     ]
    ],
    "distance": 5
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     40,
     20,
     8
    ],
    "diameter": 8
   }
  },
  {
   "command": "solid.hole",
   "params": {
    "position": [
     8,
     20,
     30
    ],
    "diameter": 8
   }
  }
 ]
}