Fix KCL examples

This commit is contained in:
Adam Chalmers
2025-03-12 16:52:36 -05:00
parent a1ff7de996
commit f53ef5d370
248 changed files with 188136 additions and 187952 deletions

View File

@ -5,7 +5,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
[
{
"cmdId": "[uuid]",
"range": [],
"range": [
0,
0,
0
],
"command": {
"type": "edge_lines_visible",
"hidden": false
@ -13,7 +17,23 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
0,
0,
0
],
"command": {
"type": "set_scene_units",
"unit": "mm"
}
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -22,7 +42,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
0,
0,
0
],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -31,7 +55,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
12,
31,
0
],
"command": {
"type": "make_plane",
"origin": {
@ -56,7 +84,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
37,
65,
0
],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -72,14 +104,22 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
37,
65,
0
],
"command": {
"type": "start_path"
}
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
37,
65,
0
],
"command": {
"type": "move_path_pen",
"path": "[uuid]",
@ -92,14 +132,22 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
37,
65,
0
],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
71,
139,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -116,7 +164,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
145,
242,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -133,7 +185,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
248,
365,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -150,7 +206,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
371,
427,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -167,7 +227,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
433,
440,
0
],
"command": {
"type": "close_path",
"path_id": "[uuid]"
@ -175,7 +239,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
453,
473,
0
],
"command": {
"type": "make_plane",
"origin": {
@ -200,7 +268,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
479,
508,
0
],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -216,14 +288,22 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
479,
508,
0
],
"command": {
"type": "start_path"
}
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
479,
508,
0
],
"command": {
"type": "move_path_pen",
"path": "[uuid]",
@ -236,14 +316,22 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
479,
508,
0
],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
514,
539,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -260,7 +348,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
545,
571,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -277,7 +369,11 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl
},
{
"cmdId": "[uuid]",
"range": [],
"range": [
577,
609,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",

View File

@ -2,21 +2,21 @@
flowchart LR
subgraph path2 [Path]
2["Path<br>[37, 65, 0]"]
3["Segment<br>[71, 121, 0]"]
4["Segment<br>[127, 227, 0]"]
5["Segment<br>[233, 353, 0]"]
6["Segment<br>[359, 415, 0]"]
7["Segment<br>[421, 428, 0]"]
3["Segment<br>[71, 139, 0]"]
4["Segment<br>[145, 242, 0]"]
5["Segment<br>[248, 365, 0]"]
6["Segment<br>[371, 427, 0]"]
7["Segment<br>[433, 440, 0]"]
8[Solid2d]
end
subgraph path10 [Path]
10["Path<br>[467, 496, 0]"]
11["Segment<br>[502, 527, 0]"]
12["Segment<br>[533, 559, 0]"]
13["Segment<br>[565, 597, 0]"]
10["Path<br>[479, 508, 0]"]
11["Segment<br>[514, 539, 0]"]
12["Segment<br>[545, 571, 0]"]
13["Segment<br>[577, 609, 0]"]
end
1["Plane<br>[12, 31, 0]"]
9["Plane<br>[441, 461, 0]"]
9["Plane<br>[453, 473, 0]"]
1 --- 2
2 --- 3
2 --- 4

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,8 @@
sketch003 = startSketchOn('YZ')
|> startProfileAt([5.82, 0], %)
|> angledLine([180, 11.54], %, $rectangleSegmentA001)
|> angledLine([
segAng(rectangleSegmentA001) - 90,
8.21
], %, $rectangleSegmentB001)
|> angledLine([
segAng(rectangleSegmentA001),
-segLen(rectangleSegmentA001)
], %, $rectangleSegmentC001)
|> angledLine(angle = 180, length = 11.54, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 8.21, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
sketch004 = startSketchOn('-XZ')

View File

@ -10,11 +10,19 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl
"type": "String",
"value": "YZ"
},
"sourceRange": []
"sourceRange": [
26,
30,
0
]
}
},
"name": "startSketchOn",
"sourceRange": [],
"sourceRange": [
12,
31,
0
],
"type": "StdLibCall",
"unlabeledArg": null
},
@ -25,11 +33,19 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl
"type": "String",
"value": "-XZ"
},
"sourceRange": []
"sourceRange": [
467,
472,
0
]
}
},
"name": "startSketchOn",
"sourceRange": [],
"sourceRange": [
453,
473,
0
],
"type": "StdLibCall",
"unlabeledArg": null
}

View File

@ -27,16 +27,19 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
71,
139,
0
]
},
"from": [
5.82,
0.0
],
"tag": {
"commentStart": 99,
"end": 120,
"start": 99,
"end": 138,
"start": 117,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -52,16 +55,19 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
145,
242,
0
]
},
"from": [
-5.72,
0.0
],
"tag": {
"commentStart": 205,
"end": 226,
"start": 205,
"end": 241,
"start": 220,
"type": "TagDeclarator",
"value": "rectangleSegmentB001"
},
@ -77,16 +83,19 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
248,
365,
0
]
},
"from": [
-5.72,
8.21
],
"tag": {
"commentStart": 331,
"end": 352,
"start": 331,
"end": 364,
"start": 343,
"type": "TagDeclarator",
"value": "rectangleSegmentC001"
},
@ -102,7 +111,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
371,
427,
0
]
},
"from": [
5.82,
@ -121,7 +134,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
433,
440,
0
]
},
"from": [
5.82,
@ -182,7 +199,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
37,
65,
0
]
}
},
"tags": {
@ -215,7 +236,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
514,
539,
0
]
},
"from": [
0.0,
@ -234,7 +259,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
545,
571,
0
]
},
"ccw": false,
"center": [
@ -258,7 +287,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
577,
609,
0
]
},
"ccw": true,
"center": [
@ -324,7 +357,11 @@ description: Variables in memory after executing artifact_graph_example_code_no_
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
"sourceRange": [
479,
508,
0
]
}
},
"artifactId": "[uuid]",