Replace plane strings with literals (#6592)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -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]
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -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])
|
||||
|
||||
@ -18,8 +18,8 @@ description: Operations executed parametric.kcl
|
||||
"labeledArgs": {
|
||||
"planeOrSolid": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user