SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
{
"commands": [
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
100.0,
0.0,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
1.0,
0.0,
0
]
},
"name": "O0"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 30.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
96.59258262890683,
25.881904510252074,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.9659258262890683,
0.25881904510252074,
0
]
},
"name": "O1"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 30.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
86.60254037844388,
49.99999999999999,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.8660254037844387,
0.49999999999999994,
0
]
},
"name": "O2"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 30.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
70.71067811865476,
70.71067811865474,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.7071067811865476,
0.7071067811865475,
0
]
},
"name": "O3"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 30.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
50.000000000000014,
86.60254037844386,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.5000000000000001,
0.8660254037844386,
0
]
},
"name": "O4"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 30.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.loft",
"params": {
"sections": [
{
"sketch": "O0"
},
{
"sketch": "O1"
},
{
"sketch": "O2"
},
{
"sketch": "O3"
},
{
"sketch": "O4"
}
],
"operation": "new",
"name": "LoftO",
"body_name": "TubeO"
}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
99.87502603949663,
-4.997916927067833,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.9987502603949663,
-0.04997916927067833,
0
]
},
"name": "I0"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
100.0,
0.0,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
1.0,
0.0,
0
]
},
"name": "I1"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
96.59258262890683,
25.881904510252074,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.9659258262890683,
0.25881904510252074,
0
]
},
"name": "I2"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
86.60254037844388,
49.99999999999999,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.8660254037844387,
0.49999999999999994,
0
]
},
"name": "I3"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
70.71067811865476,
70.71067811865474,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.7071067811865476,
0.7071067811865475,
0
]
},
"name": "I4"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
50.000000000000014,
86.60254037844386,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.5000000000000001,
0.8660254037844386,
0
]
},
"name": "I5"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "sketch.create",
"params": {
"plane": {
"origin": [
45.60918999490332,
88.9932682173703,
0.0
],
"x_dir": [
0,
0,
1
],
"y_dir": [
0.45609189994903315,
0.889932682173703,
0
]
},
"name": "I6"
}
},
{
"command": "sketch.circle.center",
"params": {
"center": [
0,
0
],
"radius": 18.0
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "solid.loft",
"params": {
"sections": [
{
"sketch": "I0"
},
{
"sketch": "I1"
},
{
"sketch": "I2"
},
{
"sketch": "I3"
},
{
"sketch": "I4"
},
{
"sketch": "I5"
},
{
"sketch": "I6"
}
],
"operation": "new",
"name": "LoftI",
"body_name": "TubeI"
}
},
{
"command": "solid.combine",
"params": {
"target": "TubeO",
"tools": [
"TubeI"
],
"operation": "cut",
"name": "Hollow"
}
}
]
}