Skip to content

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

2.6 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "A"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -10,
      -10
     ],
     [
      10,
      -10
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      10,
      -10
     ],
     [
      10,
      10
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      10,
      10
     ],
     [
      -10,
      10
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -10,
      10
     ],
     [
      -10,
      -10
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "distance": 10,
    "direction": "positive",
    "profiles": "all"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      10
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "B"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -5,
      -5
     ],
     [
      5,
      -5
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      5,
      -5
     ],
     [
      5,
      5
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      5,
      5
     ],
     [
      -5,
      5
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -5,
      5
     ],
     [
      -5,
      -5
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "distance": 10,
    "direction": "positive",
    "operation": "join",
    "profiles": "all"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      10
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "C"
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     8,
     0
    ],
    "radius": 1.5
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "to": [
     5,
     0,
     20
    ],
    "direction": "positive",
    "operation": "join",
    "profiles": "all"
   }
  }
 ]
}