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": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "A"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     20,
     0
    ],
    "p1": [
     20.5,
     4
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.revolve",
   "params": {
    "sketch": "A",
    "axis": "y",
    "body_name": "RingA"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "B"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     20.5,
     4
    ],
    "p1": [
     28,
     18
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.revolve",
   "params": {
    "sketch": "B",
    "axis": "y",
    "body_name": "RingB"
   }
  },
  {
   "command": "solid.combine",
   "params": {
    "target": "RingB",
    "tools": [
     "RingA"
    ],
    "operation": "join"
   }
  }
 ]
}