Skip to content

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

2.7 KB
Raw Blame
{
 "commands": [
  {
   "command": "solid.box",
   "params": {
    "length": 20,
    "width": 20,
    "height": 10,
    "corner": [
     -10,
     -10,
     -10
    ],
    "operation": "new",
    "body_name": "BaseBox"
   }
  },
  {
   "command": "solid.box",
   "params": {
    "length": 40,
    "width": 10,
    "height": 10,
    "corner": [
     0,
     -5,
     0
    ],
    "operation": "new",
    "body_name": "ArmBox"
   }
  },
  {
   "command": "component.create",
   "params": {
    "name": "Base",
    "parent": "root",
    "activate": false
   }
  },
  {
   "command": "component.move_bodies",
   "params": {
    "bodies": [
     "BaseBox"
    ],
    "component": "Base"
   }
  },
  {
   "command": "component.create",
   "params": {
    "name": "Arm",
    "parent": "root",
    "activate": false
   }
  },
  {
   "command": "component.move_bodies",
   "params": {
    "bodies": [
     "ArmBox"
    ],
    "component": "Arm"
   }
  },
  {
   "command": "occurrence.ground",
   "params": {
    "occurrence": "Base:1",
    "grounded": true
   }
  },
  {
   "command": "solid.box",
   "params": {
    "length": 10,
    "width": 10,
    "height": 10,
    "corner": [
     60,
     -5,
     0
    ],
    "operation": "new",
    "body_name": "GearBox"
   }
  },
  {
   "command": "component.create",
   "params": {
    "name": "Gear",
    "parent": "root",
    "activate": false
   }
  },
  {
   "command": "component.move_bodies",
   "params": {
    "bodies": [
     "GearBox"
    ],
    "component": "Gear"
   }
  },
  {
   "command": "joint.create",
   "params": {
    "type": "revolute",
    "name": "Hinge",
    "flip": true,
    "a": {
     "occurrence": "Base",
     "point": [
      0,
      0,
      0
     ],
     "z": [
      0,
      0,
      1
     ]
    },
    "b": {
     "occurrence": "Arm",
     "point": [
      0,
      0,
      0
     ],
     "z": [
      0,
      0,
      1
     ]
    },
    "quiet": true
   }
  },
  {
   "command": "joint.create",
   "params": {
    "type": "revolute",
    "name": "G2",
    "flip": true,
    "a": {
     "occurrence": "Base",
     "point": [
      50,
      0,
      0
     ],
     "z": [
      0,
      0,
      1
     ]
    },
    "b": {
     "occurrence": "Gear",
     "point": [
      50,
      0,
      0
     ],
     "z": [
      0,
      0,
      1
     ]
    },
    "quiet": true
   }
  },
  {
   "command": "joint.motion_link",
   "params": {
    "a": "Hinge",
    "b": "G2",
    "ratio": 1
   }
  },
  {
   "command": "joint.delete",
   "params": {
    "link": 0
   }
  },
  {
   "command": "joint.list",
   "params": {}
  },
  {
   "command": "joint.drive",
   "params": {
    "joint": "Hinge",
    "quiet": true,
    "value": 30
   }
  },
  {
   "command": "occurrence.properties",
   "params": {
    "occurrence": "Gear:1"
   }
  }
 ]
}