Skip to content

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

1.8 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      0.0,
      0.0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Disk"
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "radius": 60
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "distance": 5,
    "body_name": "Hub"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      0.0,
      3.0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Root"
   }
  },
  {
   "command": "sketch.rectangle.center",
   "params": {
    "center": [
     40,
     0
    ],
    "corner": [
     43,
     1.5
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      0.0,
      40.0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Tip"
   }
  },
  {
   "command": "sketch.rectangle.center",
   "params": {
    "center": [
     40,
     0
    ],
    "corner": [
     41.5,
     0.75
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.loft",
   "params": {
    "sections": [
     {
      "sketch": "Root"
     },
     {
      "sketch": "Tip"
     }
    ],
    "operation": "join",
    "name": "Blade",
    "targets": [
     "Hub"
    ]
   }
  },
  {
   "command": "solid.pattern.circular",
   "params": {
    "features": [
     "Blade"
    ],
    "axis": "Z",
    "count": 9
   }
  }
 ]
}