Skip to content

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

2.5 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": "Path"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -22,
      -20
     ],
     [
      22,
      -20
     ]
    ],
    "infer": false,
    "ids": [
     "l1"
    ]
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     22,
     -12
    ],
    "start": [
     22,
     -20
    ],
    "end": [
     30,
     -12
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      30,
      -12
     ],
     [
      30,
      12
     ]
    ],
    "infer": false,
    "ids": [
     "l2"
    ]
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     22,
     12
    ],
    "start": [
     30,
     12
    ],
    "end": [
     22,
     20
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      22,
      20
     ],
     [
      -22,
      20
     ]
    ],
    "infer": false,
    "ids": [
     "l3"
    ]
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     -22,
     12
    ],
    "start": [
     -22,
     20
    ],
    "end": [
     -30,
     12
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -30,
      12
     ],
     [
      -30,
      -12
     ]
    ],
    "infer": false,
    "ids": [
     "l4"
    ]
   }
  },
  {
   "command": "sketch.arc.center_point",
   "params": {
    "center": [
     -22,
     -12
    ],
    "start": [
     -30,
     -12
    ],
    "end": [
     -22,
     -20
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      -20.0,
      0.0
     ],
     "x_dir": [
      0,
      1,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "Prof"
   }
  },
  {
   "command": "sketch.rectangle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "corner": [
     2,
     1.5
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.sweep",
   "params": {
    "sketch": "Prof",
    "path_sketch": "Path",
    "path": [
     "l1",
     "a1",
     "l2",
     "a2",
     "l3",
     "a3",
     "l4",
     "a4"
    ],
    "operation": "new"
   }
  }
 ]
}