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
This commit is contained in:
@ -10,6 +10,14 @@ description: Operations executed multi-axis-robot.kcl
|
||||
"name": "robot-arm-base.kcl",
|
||||
"moduleId": 0
|
||||
},
|
||||
"nodePath": {
|
||||
"steps": [
|
||||
{
|
||||
"type": "ProgramBodyItem",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": []
|
||||
},
|
||||
{
|
||||
@ -19,6 +27,14 @@ description: Operations executed multi-axis-robot.kcl
|
||||
"name": "robot-rotating-base.kcl",
|
||||
"moduleId": 0
|
||||
},
|
||||
"nodePath": {
|
||||
"steps": [
|
||||
{
|
||||
"type": "ProgramBodyItem",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": []
|
||||
},
|
||||
{
|
||||
@ -28,6 +44,14 @@ description: Operations executed multi-axis-robot.kcl
|
||||
"name": "robot-arm-j2.kcl",
|
||||
"moduleId": 0
|
||||
},
|
||||
"nodePath": {
|
||||
"steps": [
|
||||
{
|
||||
"type": "ProgramBodyItem",
|
||||
"index": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": []
|
||||
},
|
||||
{
|
||||
@ -37,6 +61,14 @@ description: Operations executed multi-axis-robot.kcl
|
||||
"name": "robot-arm-j3.kcl",
|
||||
"moduleId": 0
|
||||
},
|
||||
"nodePath": {
|
||||
"steps": [
|
||||
{
|
||||
"type": "ProgramBodyItem",
|
||||
"index": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": []
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user