Files
modeling-app/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ops.snap
Jonathan Tran f6a3a3d0cd Change to use nodePath instead of sourceRange for Operations (#7320)
* Add NodePath to operations

* Change to use nodePath to get pathToNode instead of sourceRange

* Add additional node path unit test

* Update output

* Fix import statement NodePaths

* Update output

* Factor into function
2025-06-05 12:24:34 -04:00

87 lines
1.4 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Operations executed multi-axis-robot.kcl
---
[
{
"type": "GroupBegin",
"group": {
"type": "ModuleInstance",
"name": "robot-arm-base.kcl",
"moduleId": 0
},
"nodePath": {
"steps": [
{
"type": "ProgramBodyItem",
"index": 0
}
]
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "ModuleInstance",
"name": "robot-rotating-base.kcl",
"moduleId": 0
},
"nodePath": {
"steps": [
{
"type": "ProgramBodyItem",
"index": 1
}
]
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "ModuleInstance",
"name": "robot-arm-j2.kcl",
"moduleId": 0
},
"nodePath": {
"steps": [
{
"type": "ProgramBodyItem",
"index": 2
}
]
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "ModuleInstance",
"name": "robot-arm-j3.kcl",
"moduleId": 0
},
"nodePath": {
"steps": [
{
"type": "ProgramBodyItem",
"index": 3
}
]
},
"sourceRange": []
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
}
]