Replace plane strings with literals (#6592)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-30 17:13:11 +12:00
committed by GitHub
parent 14ce66bcc1
commit bae875382c
202 changed files with 2113 additions and 1852 deletions

View File

@ -1,14 +1,14 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[35, 60, 0]"]
3["Segment<br>[66, 96, 0]"]
4["Segment<br>[102, 130, 0]"]
5["Segment<br>[136, 144, 0]"]
2["Path<br>[33, 58, 0]"]
3["Segment<br>[64, 94, 0]"]
4["Segment<br>[100, 128, 0]"]
5["Segment<br>[134, 142, 0]"]
6[Solid2d]
end
1["Plane<br>[10, 29, 0]"]
7["Sweep Extrusion<br>[150, 173, 0]"]
1["Plane<br>[10, 27, 0]"]
7["Sweep Extrusion<br>[148, 171, 0]"]
8[Wall]
9[Wall]
10[Wall]

View File

@ -22,13 +22,20 @@ description: Result of parsing xz_plane.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"raw": "'XZ'",
"name": {
"commentStart": 0,
"end": 0,
"name": "XZ",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XZ"
"type": "Name",
"type": "Name"
}
],
"callee": {

View File

@ -1,4 +1,4 @@
part001 = startSketchOn('XZ')
part001 = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [100, 100])
|> line(endAbsolute = [100, 0])

View File

@ -7,8 +7,8 @@ description: Operations executed xz_plane.kcl
"labeledArgs": {
"planeOrSolid": {
"value": {
"type": "String",
"value": "XZ"
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}