687 lines
14 KiB
Plaintext
687 lines
14 KiB
Plaintext
![]() |
---
|
||
|
source: kcl-lib/src/simulation_tests.rs
|
||
|
description: Variables in memory after executing tooling-nest-block.kcl
|
||
|
---
|
||
|
{
|
||
|
"cubeExtrude": {
|
||
|
"type": "Solid",
|
||
|
"value": {
|
||
|
"type": "Solid",
|
||
|
"id": "[uuid]",
|
||
|
"artifactId": "[uuid]",
|
||
|
"value": [
|
||
|
{
|
||
|
"faceId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": [],
|
||
|
"tag": {
|
||
|
"commentStart": 677,
|
||
|
"end": 698,
|
||
|
"start": 677,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"type": "extrudePlane"
|
||
|
},
|
||
|
{
|
||
|
"faceId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": [],
|
||
|
"tag": {
|
||
|
"commentStart": 786,
|
||
|
"end": 807,
|
||
|
"start": 786,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"type": "extrudePlane"
|
||
|
},
|
||
|
{
|
||
|
"faceId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": [],
|
||
|
"tag": {
|
||
|
"commentStart": 909,
|
||
|
"end": 930,
|
||
|
"start": 909,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"type": "extrudePlane"
|
||
|
},
|
||
|
{
|
||
|
"faceId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": [],
|
||
|
"tag": {
|
||
|
"commentStart": 1000,
|
||
|
"end": 1021,
|
||
|
"start": 1000,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
},
|
||
|
"type": "extrudePlane"
|
||
|
}
|
||
|
],
|
||
|
"sketch": {
|
||
|
"type": "Sketch",
|
||
|
"id": "[uuid]",
|
||
|
"paths": [
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 677,
|
||
|
"end": 698,
|
||
|
"start": 677,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"to": [
|
||
|
50.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
50.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 786,
|
||
|
"end": 807,
|
||
|
"start": 786,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"to": [
|
||
|
50.0,
|
||
|
50.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
50.0,
|
||
|
50.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 909,
|
||
|
"end": 930,
|
||
|
"start": 909,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"to": [
|
||
|
0.0,
|
||
|
50.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
50.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 1000,
|
||
|
"end": 1021,
|
||
|
"start": 1000,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
},
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": null,
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"on": {
|
||
|
"artifactId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"origin": {
|
||
|
"x": 0.0,
|
||
|
"y": 0.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
"type": "plane",
|
||
|
"value": "XY",
|
||
|
"xAxis": {
|
||
|
"x": 1.0,
|
||
|
"y": 0.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Unknown"
|
||
|
}
|
||
|
},
|
||
|
"yAxis": {
|
||
|
"x": 0.0,
|
||
|
"y": 1.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Unknown"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"start": {
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"tag": null,
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
}
|
||
|
},
|
||
|
"tags": {
|
||
|
"rectangleSegmentA001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"rectangleSegmentB001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"rectangleSegmentC001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"rectangleSegmentD001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
}
|
||
|
},
|
||
|
"artifactId": "[uuid]",
|
||
|
"originalId": "[uuid]",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
"height": 50.0,
|
||
|
"startCapId": "[uuid]",
|
||
|
"endCapId": "[uuid]",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"sectional": false
|
||
|
}
|
||
|
},
|
||
|
"cubeSketch": {
|
||
|
"type": "Sketch",
|
||
|
"value": {
|
||
|
"type": "Sketch",
|
||
|
"id": "[uuid]",
|
||
|
"paths": [
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 677,
|
||
|
"end": 698,
|
||
|
"start": 677,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"to": [
|
||
|
50.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
50.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 786,
|
||
|
"end": 807,
|
||
|
"start": 786,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"to": [
|
||
|
50.0,
|
||
|
50.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
50.0,
|
||
|
50.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 909,
|
||
|
"end": 930,
|
||
|
"start": 909,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"to": [
|
||
|
0.0,
|
||
|
50.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
50.0
|
||
|
],
|
||
|
"tag": {
|
||
|
"commentStart": 1000,
|
||
|
"end": 1021,
|
||
|
"start": 1000,
|
||
|
"type": "TagDeclarator",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
},
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
},
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"tag": null,
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"type": "ToPoint",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"on": {
|
||
|
"artifactId": "[uuid]",
|
||
|
"id": "[uuid]",
|
||
|
"origin": {
|
||
|
"x": 0.0,
|
||
|
"y": 0.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
},
|
||
|
"type": "plane",
|
||
|
"value": "XY",
|
||
|
"xAxis": {
|
||
|
"x": 1.0,
|
||
|
"y": 0.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Unknown"
|
||
|
}
|
||
|
},
|
||
|
"yAxis": {
|
||
|
"x": 0.0,
|
||
|
"y": 1.0,
|
||
|
"z": 0.0,
|
||
|
"units": {
|
||
|
"type": "Unknown"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"start": {
|
||
|
"from": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"to": [
|
||
|
0.0,
|
||
|
0.0
|
||
|
],
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"tag": null,
|
||
|
"__geoMeta": {
|
||
|
"id": "[uuid]",
|
||
|
"sourceRange": []
|
||
|
}
|
||
|
},
|
||
|
"tags": {
|
||
|
"rectangleSegmentA001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"rectangleSegmentB001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"rectangleSegmentC001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"rectangleSegmentD001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
}
|
||
|
},
|
||
|
"artifactId": "[uuid]",
|
||
|
"originalId": "[uuid]",
|
||
|
"units": {
|
||
|
"type": "Mm"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"nest": {
|
||
|
"type": "Function",
|
||
|
"value": null
|
||
|
},
|
||
|
"rectangleSegmentA001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentA001"
|
||
|
},
|
||
|
"rectangleSegmentB001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentB001"
|
||
|
},
|
||
|
"rectangleSegmentC001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentC001"
|
||
|
},
|
||
|
"rectangleSegmentD001": {
|
||
|
"type": "TagIdentifier",
|
||
|
"type": "TagIdentifier",
|
||
|
"value": "rectangleSegmentD001"
|
||
|
},
|
||
|
"sideLength": {
|
||
|
"type": "Number",
|
||
|
"value": 50.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size01": {
|
||
|
"type": "Number",
|
||
|
"value": 15.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size02": {
|
||
|
"type": "Number",
|
||
|
"value": 10.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size03": {
|
||
|
"type": "Number",
|
||
|
"value": 6.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size04": {
|
||
|
"type": "Number",
|
||
|
"value": 0.375,
|
||
|
"ty": {
|
||
|
"type": "Known",
|
||
|
"type": "Length",
|
||
|
"type": "Inches"
|
||
|
}
|
||
|
},
|
||
|
"size05": {
|
||
|
"type": "Number",
|
||
|
"value": 0.25,
|
||
|
"ty": {
|
||
|
"type": "Known",
|
||
|
"type": "Length",
|
||
|
"type": "Inches"
|
||
|
}
|
||
|
},
|
||
|
"size06": {
|
||
|
"type": "Number",
|
||
|
"value": 0.5,
|
||
|
"ty": {
|
||
|
"type": "Known",
|
||
|
"type": "Length",
|
||
|
"type": "Inches"
|
||
|
}
|
||
|
},
|
||
|
"size07": {
|
||
|
"type": "Number",
|
||
|
"value": 0.75,
|
||
|
"ty": {
|
||
|
"type": "Known",
|
||
|
"type": "Length",
|
||
|
"type": "Inches"
|
||
|
}
|
||
|
},
|
||
|
"size08": {
|
||
|
"type": "Number",
|
||
|
"value": 5.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size09": {
|
||
|
"type": "Number",
|
||
|
"value": 4.5,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size10": {
|
||
|
"type": "Number",
|
||
|
"value": 4.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size11": {
|
||
|
"type": "Number",
|
||
|
"value": 3.5,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size12": {
|
||
|
"type": "Number",
|
||
|
"value": 3.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size13": {
|
||
|
"type": "Number",
|
||
|
"value": 2.5,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size14": {
|
||
|
"type": "Number",
|
||
|
"value": 2.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"size15": {
|
||
|
"type": "Number",
|
||
|
"value": 1.0,
|
||
|
"ty": {
|
||
|
"type": "Default",
|
||
|
"len": {
|
||
|
"type": "Mm"
|
||
|
},
|
||
|
"angle": {
|
||
|
"type": "Degrees"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|