2025-03-06 18:01:24 -05:00
|
|
|
---
|
2025-03-07 22:07:16 -06:00
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2025-03-06 18:01:24 -05:00
|
|
|
description: Operations executed socket-head-cap-screw.kcl
|
|
|
|
---
|
|
|
|
[
|
2025-04-23 10:58:35 +12:00
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "toRadians",
|
|
|
|
"functionSourceRange": [
|
2025-04-25 16:01:35 -05:00
|
|
|
11503,
|
|
|
|
11552,
|
2025-04-23 10:58:35 +12:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
},
|
2025-03-06 18:01:24 -05:00
|
|
|
{
|
2025-04-03 22:10:39 -04:00
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "cos",
|
|
|
|
"functionSourceRange": [
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
2025-04-03 22:10:39 -04:00
|
|
|
"type": "GroupEnd"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"planeOrSolid": {
|
2025-03-06 18:01:24 -05:00
|
|
|
"value": {
|
2025-03-26 08:53:34 -07:00
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-03-20 09:22:17 -07:00
|
|
|
"value": -0.19,
|
2025-03-06 18:01:24 -05:00
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "extrude",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
{
|
|
|
|
"labeledArgs": {
|
|
|
|
"radius": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 0.02,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"value": {
|
|
|
|
"type": "Array",
|
|
|
|
"value": [
|
|
|
|
{
|
|
|
|
"type": "TagIdentifier",
|
|
|
|
"value": "topEdge",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Uuid",
|
|
|
|
"value": "[uuid]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "fillet",
|
|
|
|
"sourceRange": [],
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Solid",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-03-06 18:01:24 -05:00
|
|
|
{
|
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"face": {
|
2025-03-06 18:01:24 -05:00
|
|
|
"value": {
|
|
|
|
"type": "String",
|
2025-03-20 09:22:17 -07:00
|
|
|
"value": "start"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
2025-04-14 05:58:19 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Solid",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": -0.14250000000000002,
|
|
|
|
"ty": {
|
2025-04-07 16:13:15 +12:00
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "extrude",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"labeledArgs": {
|
2025-04-14 05:58:19 -04:00
|
|
|
"face": {
|
2025-03-06 18:01:24 -05:00
|
|
|
"value": {
|
|
|
|
"type": "String",
|
2025-03-20 09:22:17 -07:00
|
|
|
"value": "end"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
2025-04-14 05:58:19 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Solid",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 1.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "extrude",
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": [],
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
{
|
|
|
|
"labeledArgs": {
|
|
|
|
"radius": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 0.02,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Inches"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"tags": {
|
|
|
|
"value": {
|
|
|
|
"type": "Array",
|
|
|
|
"value": [
|
|
|
|
{
|
|
|
|
"type": "Uuid",
|
|
|
|
"value": "[uuid]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": "fillet",
|
|
|
|
"sourceRange": [],
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Solid",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
]
|