Skip to content

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

6.8 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0.0,
      0.0,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.0,
      -1.0,
      0
     ]
    },
    "name": "S0"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -66.0
    ],
    "through": [
     66.0,
     0
    ],
    "end": [
     0,
     66.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      66.0
     ],
     [
      0,
      60.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     60.0
    ],
    "through": [
     60.0,
     0
    ],
    "end": [
     0,
     -60.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -60.0
     ],
     [
      0,
      -66.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      26.146722824,
      1.141590572,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.087155743,
      -0.996194698,
      0
     ]
    },
    "name": "S1"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -69.75
    ],
    "through": [
     69.75,
     0
    ],
    "end": [
     0,
     69.75
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      69.75
     ],
     [
      0,
      63.75
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     63.75
    ],
    "through": [
     63.75,
     0
    ],
    "end": [
     0,
     -63.75
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -63.75
     ],
     [
      0,
      -69.75
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      52.0944533,
      4.557674096,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.173648178,
      -0.984807753,
      0
     ]
    },
    "name": "S2"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -73.5
    ],
    "through": [
     73.5,
     0
    ],
    "end": [
     0,
     73.5
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      73.5
     ],
     [
      0,
      67.5
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     67.5
    ],
    "through": [
     67.5,
     0
    ],
    "end": [
     0,
     -67.5
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -67.5
     ],
     [
      0,
      -73.5
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      77.645713531,
      10.222252113,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.258819045,
      -0.965925826,
      0
     ]
    },
    "name": "S3"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -77.25
    ],
    "through": [
     77.25,
     0
    ],
    "end": [
     0,
     77.25
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      77.25
     ],
     [
      0,
      71.25
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     71.25
    ],
    "through": [
     71.25,
     0
    ],
    "end": [
     0,
     -71.25
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -71.25
     ],
     [
      0,
      -77.25
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      102.606042998,
      18.092213764,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.342020143,
      -0.939692621,
      0
     ]
    },
    "name": "S4"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -81.0
    ],
    "through": [
     81.0,
     0
    ],
    "end": [
     0,
     81.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      81.0
     ],
     [
      0,
      75.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     75.0
    ],
    "through": [
     75.0,
     0
    ],
    "end": [
     0,
     -75.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -75.0
     ],
     [
      0,
      -81.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.loft",
   "params": {
    "sections": [
     {
      "sketch": "S0"
     },
     {
      "sketch": "S1"
     },
     {
      "sketch": "S2"
     },
     {
      "sketch": "S3"
     },
     {
      "sketch": "S4"
     }
    ],
    "operation": "new",
    "name": "TubeLoft",
    "body_name": "Tube"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      102.606042998,
      18.092213764,
      0.0
     ],
     "x_dir": [
      0,
      0,
      1
     ],
     "y_dir": [
      0.342020143,
      -0.939692621,
      0
     ]
    },
    "name": "Flange"
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     -106.0
    ],
    "through": [
     106.0,
     0
    ],
    "end": [
     0,
     106.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      106.0
     ],
     [
      0,
      78.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     0,
     78.0
    ],
    "through": [
     78.0,
     0
    ],
    "end": [
     0,
     -78.0
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      -78.0
     ],
     [
      0,
      -106.0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "Flange",
    "distance": 8.0,
    "operation": "join",
    "targets": [
     "Tube"
    ],
    "name": "JoinFlange"
   }
  }
 ]
}