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,17 +1,17 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[253, 278, 0]"]
3["Segment<br>[284, 305, 0]"]
4["Segment<br>[311, 332, 0]"]
5["Segment<br>[338, 365, 0]"]
6["Segment<br>[371, 405, 0]"]
7["Segment<br>[411, 445, 0]"]
8["Segment<br>[451, 459, 0]"]
2["Path<br>[251, 276, 0]"]
3["Segment<br>[282, 303, 0]"]
4["Segment<br>[309, 330, 0]"]
5["Segment<br>[336, 363, 0]"]
6["Segment<br>[369, 403, 0]"]
7["Segment<br>[409, 443, 0]"]
8["Segment<br>[449, 457, 0]"]
9[Solid2d]
end
1["Plane<br>[228, 247, 0]"]
10["Sweep Extrusion<br>[465, 488, 0]"]
1["Plane<br>[228, 245, 0]"]
10["Sweep Extrusion<br>[463, 486, 0]"]
11[Wall]
12[Wall]
13[Wall]

View File

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

View File

@ -7,7 +7,7 @@ FOS = 2
leg1 = 5 // inches
leg2 = 8 // inches
thickness = sqrt(distance * p * FOS * 6 / sigmaAllow / width) // inches
bracket = startSketchOn('XY')
bracket = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [0, leg1])
|> line(end = [leg2, 0])

View File

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