SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
{
"commands": [
{
"command": "solid.box",
"params": {
"corner": [
-30,
-30,
0
],
"length": 60,
"width": 60,
"height": 20,
"body_name": "Housing"
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
0,
0,
20
],
"x_dir": [
1,
0,
0
],
"y_dir": [
0,
1,
0
]
}
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 24
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 16
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"profiles": [
{
"point": [
20,
0
]
}
],
"distance": 10,
"direction": "negative",
"operation": "cut",
"targets": [
"Housing"
]
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
0,
0,
10
],
"x_dir": [
1,
0,
0
],
"y_dir": [
0,
1,
0
]
}
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
20,
0
],
"radius": 4
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.extrude",
"params": {
"distance": 6,
"operation": "join",
"targets": [
"Housing"
]
}
}
]
}