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": "solid.box",
   "params": {
    "length": 40,
    "width": 30,
    "height": 10,
    "body_name": "Plate",
    "name": "Plate"
   }
  },
  {
   "command": "solid.fillet",
   "params": {
    "edges": [
     [
      20,
      0,
      10
     ]
    ],
    "radius": 2,
    "name": "Rim"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "offset": 10,
    "name": "Circles"
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     12,
     15
    ],
    "radius": 5
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     28,
     15
    ],
    "radius": 5
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "Circles",
    "distance": -1.5,
    "operation": "cut",
    "name": "ShallowCuts"
   }
  },
  {
   "command": "timeline.rollback",
   "params": {
    "position": 2
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "offset": 10,
    "name": "PocketOutline"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     5,
     15
    ],
    "p1": [
     35,
     25
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "PocketOutline",
    "distance": -0.75,
    "operation": "cut",
    "name": "EarlierPocket"
   }
  },
  {
   "command": "timeline.rollback",
   "params": {}
  },
  {
   "command": "timeline.redefine",
   "params": {
    "feature": "ShallowCuts",
    "command": "solid.extrude",
    "params": {
     "sketch": "Circles",
     "profiles": [
      0,
      1
     ],
     "distance": "-1.5",
     "direction": "positive",
     "convention": "total_distance",
     "operation": "cut"
    }
   }
  }
 ]
}