2025-03-13 23:38:51 -07:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Operations executed flange.kcl
|
|
|
|
---
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-05-02 16:08:12 -05:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
|
|
|
"labeledArgs": {},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 12
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-05-02 16:08:12 -05:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
|
|
|
"labeledArgs": {},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 13
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
},
|
|
|
|
{
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "subtract2d",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
2025-04-26 15:31:51 -05:00
|
|
|
"tool": {
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
2025-03-17 17:57:26 +13:00
|
|
|
"type": "Array",
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": [
|
|
|
|
{
|
2025-03-17 17:57:26 +13:00
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
2025-03-13 23:38:51 -07:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 17:57:26 +13:00
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
2025-03-13 23:38:51 -07:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 17:57:26 +13:00
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
2025-03-13 23:38:51 -07:00
|
|
|
},
|
|
|
|
{
|
2025-03-17 17:57:26 +13:00
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 13
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "extrude",
|
2025-04-26 15:31:51 -05:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 0.625,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 13
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-03-13 23:38:51 -07:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Solid",
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"face": {
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"type": "String",
|
|
|
|
"value": "end"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 14
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "extrude",
|
2025-04-14 05:58:19 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Sketch",
|
2025-04-14 05:58:19 -04:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-05-14 01:31:58 -04:00
|
|
|
"value": 0.128,
|
2025-03-13 23:38:51 -07:00
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 14
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-03-13 23:38:51 -07:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Solid",
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"face": {
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"type": "String",
|
|
|
|
"value": "start"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 15
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "extrude",
|
2025-04-14 05:58:19 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Sketch",
|
2025-04-14 05:58:19 -04:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 0.06,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 15
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-03-13 23:38:51 -07:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Solid",
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"face": {
|
2025-03-13 23:38:51 -07:00
|
|
|
"value": {
|
|
|
|
"type": "String",
|
|
|
|
"value": "end"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 16
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-03-13 23:38:51 -07:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "extrude",
|
2025-04-14 05:58:19 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Sketch",
|
2025-04-14 05:58:19 -04:00
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-03-13 23:38:51 -07:00
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": -0.813,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 16
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
2025-03-13 23:38:51 -07:00
|
|
|
}
|
|
|
|
]
|