* Change so that operations are stored per module * Refactor so that all modeling commands go through ExecState * Remove unneeded PartialOrd implementations * Remove artifact_commands from KclError since it was only for debugging --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
252 lines
5.2 KiB
Plaintext
252 lines
5.2 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed artifact_graph_example_code1.kcl
|
|
---
|
|
{
|
|
"rust/kcl-lib/tests/artifact_graph_example_code1/input.kcl": [
|
|
{
|
|
"type": "StdLibCall",
|
|
"name": "startSketchOn",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Plane",
|
|
"artifact_id": "[uuid]"
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"labeledArgs": {},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 0
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 0
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "StdLibCall",
|
|
"name": "extrude",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": -10.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 0
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "StdLibCall",
|
|
"name": "fillet",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"labeledArgs": {
|
|
"radius": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 5.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"tags": {
|
|
"value": {
|
|
"type": "Array",
|
|
"value": [
|
|
{
|
|
"type": "TagIdentifier",
|
|
"value": "seg01",
|
|
"artifact_id": "[uuid]"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 1
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "StdLibCall",
|
|
"name": "startSketchOn",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"labeledArgs": {
|
|
"face": {
|
|
"value": {
|
|
"type": "TagIdentifier",
|
|
"value": "seg02",
|
|
"artifact_id": "[uuid]"
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 2
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 0
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "StdLibCall",
|
|
"name": "extrude",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 5.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 3
|
|
},
|
|
{
|
|
"type": "VariableDeclarationDeclaration"
|
|
},
|
|
{
|
|
"type": "VariableDeclarationInit"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
],
|
|
"std::appearance": [],
|
|
"std::array": [],
|
|
"std::math": [],
|
|
"std::prelude": [],
|
|
"std::sketch": [],
|
|
"std::solid": [],
|
|
"std::sweep": [],
|
|
"std::transform": [],
|
|
"std::turns": [],
|
|
"std::types": [],
|
|
"std::units": []
|
|
}
|