Skip to content

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

1.2 KB
Raw Blame
{
 "commands": [
  {
   "command": "solid.box",
   "params": {
    "length": 40,
    "width": 40,
    "height": 10,
    "corner": [
     50,
     0,
     0
    ],
    "operation": "new",
    "body_name": "BaseBox"
   }
  },
  {
   "command": "solid.box",
   "params": {
    "length": 20,
    "width": 10,
    "height": 10,
    "corner": [
     0,
     0,
     0
    ],
    "operation": "new",
    "body_name": "PegBox"
   }
  },
  {
   "command": "component.create",
   "params": {
    "name": "Base",
    "parent": "root",
    "activate": false,
    "grounded": true
   }
  },
  {
   "command": "component.move_bodies",
   "params": {
    "bodies": [
     "BaseBox"
    ],
    "component": "Base"
   }
  },
  {
   "command": "component.create",
   "params": {
    "name": "Peg",
    "parent": "root",
    "activate": false,
    "grounded": false
   }
  },
  {
   "command": "component.move_bodies",
   "params": {
    "bodies": [
     "PegBox"
    ],
    "component": "Peg"
   }
  },
  {
   "command": "occurrence.align",
   "params": {
    "occurrence": "Peg:1",
    "from_face": [
     20,
     5,
     5
    ],
    "to_face": [
     70,
     20,
     10
    ]
   }
  },
  {
   "command": "occurrence.properties",
   "params": {
    "occurrence": "Peg:1"
   }
  }
 ]
}