Kwargs: startProfileAt (#6424)

Previous:

```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```

New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
This commit is contained in:
Adam Chalmers
2025-04-25 16:01:35 -05:00
committed by GitHub
parent 9547e95e9d
commit ffbe20b586
573 changed files with 19805 additions and 16552 deletions

View File

@ -1,85 +1,85 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[43, 83, 0]"]
3["Segment<br>[89, 127, 0]"]
4["Segment<br>[133, 172, 0]"]
5["Segment<br>[178, 234, 0]"]
6["Segment<br>[240, 247, 0]"]
2["Path<br>[43, 86, 0]"]
3["Segment<br>[92, 130, 0]"]
4["Segment<br>[136, 175, 0]"]
5["Segment<br>[181, 237, 0]"]
6["Segment<br>[243, 250, 0]"]
7[Solid2d]
end
subgraph path20 [Path]
20["Path<br>[359, 399, 0]"]
21["Segment<br>[405, 429, 0]"]
22["Segment<br>[435, 460, 0]"]
20["Path<br>[362, 405, 0]"]
21["Segment<br>[411, 435, 0]"]
22["Segment<br>[441, 466, 0]"]
end
subgraph path23 [Path]
23["Path<br>[474, 513, 0]"]
24["Segment<br>[519, 584, 0]"]
25["Segment<br>[590, 658, 0]"]
26["Segment<br>[664, 752, 0]"]
27["Segment<br>[758, 814, 0]"]
28["Segment<br>[820, 827, 0]"]
23["Path<br>[480, 522, 0]"]
24["Segment<br>[528, 593, 0]"]
25["Segment<br>[599, 667, 0]"]
26["Segment<br>[673, 761, 0]"]
27["Segment<br>[767, 823, 0]"]
28["Segment<br>[829, 836, 0]"]
29[Solid2d]
end
subgraph path30 [Path]
30["Path<br>[841, 880, 0]"]
31["Segment<br>[886, 906, 0]"]
32["Segment<br>[912, 938, 0]"]
33["Segment<br>[944, 1000, 0]"]
34["Segment<br>[1006, 1013, 0]"]
30["Path<br>[850, 892, 0]"]
31["Segment<br>[898, 918, 0]"]
32["Segment<br>[924, 950, 0]"]
33["Segment<br>[956, 1012, 0]"]
34["Segment<br>[1018, 1025, 0]"]
35[Solid2d]
end
subgraph path36 [Path]
36["Path<br>[1027, 1082, 0]"]
37["Segment<br>[1027, 1082, 0]"]
36["Path<br>[1039, 1094, 0]"]
37["Segment<br>[1039, 1094, 0]"]
38[Solid2d]
end
subgraph path39 [Path]
39["Path<br>[1096, 1135, 0]"]
40["Segment<br>[1141, 1165, 0]"]
41["Segment<br>[1171, 1196, 0]"]
42["Segment<br>[1202, 1258, 0]"]
43["Segment<br>[1264, 1271, 0]"]
39["Path<br>[1108, 1150, 0]"]
40["Segment<br>[1156, 1180, 0]"]
41["Segment<br>[1186, 1211, 0]"]
42["Segment<br>[1217, 1273, 0]"]
43["Segment<br>[1279, 1286, 0]"]
44[Solid2d]
end
subgraph path59 [Path]
59["Path<br>[1441, 1479, 0]"]
60["Segment<br>[1485, 1509, 0]"]
61["Segment<br>[1515, 1540, 0]"]
59["Path<br>[1456, 1497, 0]"]
60["Segment<br>[1503, 1527, 0]"]
61["Segment<br>[1533, 1558, 0]"]
end
subgraph path62 [Path]
62["Path<br>[1554, 1593, 0]"]
63["Segment<br>[1599, 1623, 0]"]
64["Segment<br>[1629, 1654, 0]"]
65["Segment<br>[1660, 1716, 0]"]
66["Segment<br>[1722, 1729, 0]"]
62["Path<br>[1572, 1614, 0]"]
63["Segment<br>[1620, 1644, 0]"]
64["Segment<br>[1650, 1675, 0]"]
65["Segment<br>[1681, 1737, 0]"]
66["Segment<br>[1743, 1750, 0]"]
67[Solid2d]
end
subgraph path68 [Path]
68["Path<br>[1743, 1782, 0]"]
69["Segment<br>[1788, 1811, 0]"]
70["Segment<br>[1817, 1842, 0]"]
71["Segment<br>[1848, 1904, 0]"]
72["Segment<br>[1910, 1917, 0]"]
68["Path<br>[1764, 1806, 0]"]
69["Segment<br>[1812, 1835, 0]"]
70["Segment<br>[1841, 1866, 0]"]
71["Segment<br>[1872, 1928, 0]"]
72["Segment<br>[1934, 1941, 0]"]
73[Solid2d]
end
subgraph path74 [Path]
74["Path<br>[1931, 1987, 0]"]
75["Segment<br>[1931, 1987, 0]"]
74["Path<br>[1955, 2011, 0]"]
75["Segment<br>[1955, 2011, 0]"]
76[Solid2d]
end
subgraph path77 [Path]
77["Path<br>[2001, 2041, 0]"]
78["Segment<br>[2047, 2112, 0]"]
79["Segment<br>[2118, 2186, 0]"]
80["Segment<br>[2192, 2280, 0]"]
81["Segment<br>[2286, 2342, 0]"]
82["Segment<br>[2348, 2355, 0]"]
77["Path<br>[2025, 2068, 0]"]
78["Segment<br>[2074, 2139, 0]"]
79["Segment<br>[2145, 2213, 0]"]
80["Segment<br>[2219, 2307, 0]"]
81["Segment<br>[2313, 2369, 0]"]
82["Segment<br>[2375, 2382, 0]"]
83[Solid2d]
end
1["Plane<br>[12, 29, 0]"]
8["Sweep Extrusion<br>[261, 293, 0]"]
8["Sweep Extrusion<br>[264, 296, 0]"]
9[Wall]
10[Wall]
11[Wall]
@ -91,8 +91,8 @@ flowchart LR
17["SweepEdge Adjacent"]
18["SweepEdge Opposite"]
19["SweepEdge Adjacent"]
45["Sweep RevolveAboutEdge<br>[1285, 1351, 0]"]
46["Sweep Extrusion<br>[1365, 1396, 0]"]
45["Sweep RevolveAboutEdge<br>[1300, 1366, 0]"]
46["Sweep Extrusion<br>[1380, 1411, 0]"]
47[Wall]
48[Wall]
49[Wall]
@ -104,8 +104,8 @@ flowchart LR
55["SweepEdge Adjacent"]
56["SweepEdge Opposite"]
57["SweepEdge Adjacent"]
58["Plane<br>[1409, 1427, 0]"]
84["Sweep Extrusion<br>[2369, 2402, 0]"]
58["Plane<br>[1424, 1442, 0]"]
84["Sweep Extrusion<br>[2396, 2429, 0]"]
85[Wall]
86[Wall]
87[Wall]
@ -120,7 +120,7 @@ flowchart LR
96["SweepEdge Adjacent"]
97["SweepEdge Opposite"]
98["SweepEdge Adjacent"]
99["Sweep RevolveAboutEdge<br>[2416, 2461, 0]"]
99["Sweep RevolveAboutEdge<br>[2443, 2488, 0]"]
100[Wall]
101[Wall]
102[Wall]
@ -132,7 +132,7 @@ flowchart LR
108["SweepEdge Adjacent"]
109["SweepEdge Opposite"]
110["SweepEdge Adjacent"]
111["StartSketchOnFace<br>[306, 345, 0]"]
111["StartSketchOnFace<br>[309, 348, 0]"]
1 --- 2
2 --- 3
2 --- 4

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,27 @@
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([6.71, -3.66], sketch001)
profile001 = startProfile(sketch001, at = [6.71, -3.66])
|> line(end = [2.65, 9.02], tag = $seg02)
|> line(end = [3.73, -9.36], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 20)
sketch002 = startSketchOn(extrude001, face = seg01)
profile002 = startProfileAt([0.75, 13.46], sketch002)
profile002 = startProfile(sketch002, at = [0.75, 13.46])
|> line(end = [4.52, 3.79])
|> line(end = [5.98, -2.81])
profile003 = startProfileAt([3.19, 13.3], sketch002)
profile003 = startProfile(sketch002, at = [3.19, 13.3])
|> angledLine(angle = 0, length = 6.64, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 2.81)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile004 = startProfileAt([3.15, 9.39], sketch002)
profile004 = startProfile(sketch002, at = [3.15, 9.39])
|> xLine(length = 6.92)
|> line(end = [-7.41, -2.85])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile005 = circle(sketch002, center = [5.15, 4.34], radius = 1.66)
profile006 = startProfileAt([9.65, 3.82], sketch002)
profile006 = startProfile(sketch002, at = [9.65, 3.82])
|> line(end = [2.38, 5.62])
|> line(end = [2.13, -5.57])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
@ -29,21 +29,21 @@ profile006 = startProfileAt([9.65, 3.82], sketch002)
revolve001 = revolve(profile004, angle = 45, axis = getNextAdjacentEdge(seg01))
extrude002 = extrude(profile006, length = 4)
sketch003 = startSketchOn(-XZ)
profile007 = startProfileAt([4.8, 7.55], sketch003)
profile007 = startProfile(sketch003, at = [4.8, 7.55])
|> line(end = [7.39, 2.58])
|> line(end = [7.02, -2.85])
profile008 = startProfileAt([5.54, 5.49], sketch003)
profile008 = startProfile(sketch003, at = [5.54, 5.49])
|> line(end = [6.34, 2.64])
|> line(end = [6.33, -2.96])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile009 = startProfileAt([5.23, 1.95], sketch003)
profile009 = startProfile(sketch003, at = [5.23, 1.95])
|> line(end = [6.8, 2.17])
|> line(end = [7.34, -2.75])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile010 = circle(sketch003, center = [7.18, -2.11], radius = 2.67)
profile011 = startProfileAt([5.07, -6.39], sketch003)
profile011 = startProfile(sketch003, at = [5.07, -6.39])
|> angledLine(angle = 0, length = 4.54, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 4.17)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002))

View File

@ -15,9 +15,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -28,9 +28,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -58,9 +58,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -83,9 +83,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -351,9 +351,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -364,9 +364,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -394,9 +394,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -419,9 +419,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -594,9 +594,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -638,9 +638,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-6.39
],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -815,9 +815,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -840,9 +840,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1035,9 +1035,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1048,9 +1048,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1078,9 +1078,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1103,9 +1103,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1274,9 +1274,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
13.3
],
"tag": {
"commentStart": 562,
"end": 583,
"start": 562,
"commentStart": 571,
"end": 592,
"start": 571,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -1397,9 +1397,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1410,9 +1410,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1440,9 +1440,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1465,9 +1465,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1740,9 +1740,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1753,9 +1753,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1783,9 +1783,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1808,9 +1808,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2026,9 +2026,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2039,9 +2039,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2069,9 +2069,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2094,9 +2094,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2363,9 +2363,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2376,9 +2376,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2406,9 +2406,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2431,9 +2431,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3065,9 +3065,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-6.39
],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -3347,9 +3347,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3360,9 +3360,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3390,9 +3390,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3415,9 +3415,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3825,9 +3825,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3838,9 +3838,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3868,9 +3868,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3893,9 +3893,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},

View File

@ -3,29 +3,29 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing crazy_multi_profile.kcl
---
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([6.71, -3.66], sketch001)
profile001 = startProfile(sketch001, at = [6.71, -3.66])
|> line(end = [2.65, 9.02], tag = $seg02)
|> line(end = [3.73, -9.36], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 20)
sketch002 = startSketchOn(extrude001, face = seg01)
profile002 = startProfileAt([0.75, 13.46], sketch002)
profile002 = startProfile(sketch002, at = [0.75, 13.46])
|> line(end = [4.52, 3.79])
|> line(end = [5.98, -2.81])
profile003 = startProfileAt([3.19, 13.3], sketch002)
profile003 = startProfile(sketch002, at = [3.19, 13.3])
|> angledLine(angle = 0, length = 6.64, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 2.81)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile004 = startProfileAt([3.15, 9.39], sketch002)
profile004 = startProfile(sketch002, at = [3.15, 9.39])
|> xLine(length = 6.92)
|> line(end = [-7.41, -2.85])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile005 = circle(sketch002, center = [5.15, 4.34], radius = 1.66)
profile006 = startProfileAt([9.65, 3.82], sketch002)
profile006 = startProfile(sketch002, at = [9.65, 3.82])
|> line(end = [2.38, 5.62])
|> line(end = [2.13, -5.57])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
@ -33,21 +33,21 @@ profile006 = startProfileAt([9.65, 3.82], sketch002)
revolve001 = revolve(profile004, angle = 45, axis = getNextAdjacentEdge(seg01))
extrude002 = extrude(profile006, length = 4)
sketch003 = startSketchOn(-XZ)
profile007 = startProfileAt([4.8, 7.55], sketch003)
profile007 = startProfile(sketch003, at = [4.8, 7.55])
|> line(end = [7.39, 2.58])
|> line(end = [7.02, -2.85])
profile008 = startProfileAt([5.54, 5.49], sketch003)
profile008 = startProfile(sketch003, at = [5.54, 5.49])
|> line(end = [6.34, 2.64])
|> line(end = [6.33, -2.96])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile009 = startProfileAt([5.23, 1.95], sketch003)
profile009 = startProfile(sketch003, at = [5.23, 1.95])
|> line(end = [6.8, 2.17])
|> line(end = [7.34, -2.75])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile010 = circle(sketch003, center = [7.18, -2.11], radius = 2.67)
profile011 = startProfileAt([5.07, -6.39], sketch003)
profile011 = startProfile(sketch003, at = [5.07, -6.39])
|> angledLine(angle = 0, length = 4.54, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 4.17)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002))