Preparing for the removal of positional functions from the language. The first big step is to change all our KCL code examples, test code, public samples etc to all use keyword functions. Apologies for how large this PR is. Most of it is: - Changing example KCL that defined its own functions, so the functions now use keyword arguments rather than positional arguments. E.g. change `cube([20, 20])` to be `cube(center = [20, 20])`. - Some parts of the code assumed positional code and didn't handle keyword calls, e.g. the linter would only check for positional calls to startSketchOn. Now they should work with either positional or keyword. - Update all the artifacts This does _not_ remove support for positional calls. That will be in a follow-up PR.
16 KiB
16 KiB
flowchart LR
subgraph path13 [Path]
13["Path<br>[1188, 1234, 0]"]
22["Segment<br>[1242, 1264, 0]"]
25["Segment<br>[1272, 1302, 0]"]
26["Segment<br>[1310, 1354, 0]"]
28["Segment<br>[1362, 1389, 0]"]
30["Segment<br>[1397, 1441, 0]"]
32["Segment<br>[1449, 1456, 0]"]
79[Solid2d]
end
subgraph path14 [Path]
14["Path<br>[1188, 1234, 0]"]
23["Segment<br>[1242, 1264, 0]"]
24["Segment<br>[1272, 1302, 0]"]
27["Segment<br>[1310, 1354, 0]"]
29["Segment<br>[1362, 1389, 0]"]
31["Segment<br>[1397, 1441, 0]"]
33["Segment<br>[1449, 1456, 0]"]
80[Solid2d]
end
subgraph path15 [Path]
15["Path<br>[2497, 2585, 0]"]
34["Segment<br>[2591, 2655, 0]"]
35["Segment<br>[2661, 2725, 0]"]
36["Segment<br>[2731, 2784, 0]"]
37["Segment<br>[2790, 2811, 0]"]
77[Solid2d]
end
subgraph path16 [Path]
16["Path<br>[3142, 3308, 0]"]
38["Segment<br>[3142, 3308, 0]"]
76[Solid2d]
end
subgraph path17 [Path]
17["Path<br>[4592, 4617, 0]"]
39["Segment<br>[4623, 4695, 0]"]
40["Segment<br>[4701, 4774, 0]"]
41["Segment<br>[4780, 4833, 0]"]
42["Segment<br>[4839, 4860, 0]"]
75[Solid2d]
end
subgraph path18 [Path]
18["Path<br>[5328, 5353, 0]"]
45["Segment<br>[5413, 5456, 0]"]
49["Segment<br>[5464, 5584, 0]"]
53["Segment<br>[5647, 5696, 0]"]
56["Segment<br>[5704, 5729, 0]"]
60["Segment<br>[5737, 5780, 0]"]
65["Segment<br>[5788, 5813, 0]"]
68["Segment<br>[5821, 5865, 0]"]
74["Segment<br>[5873, 5880, 0]"]
78[Solid2d]
end
subgraph path19 [Path]
19["Path<br>[5328, 5353, 0]"]
43["Segment<br>[5413, 5456, 0]"]
47["Segment<br>[5464, 5584, 0]"]
51["Segment<br>[5647, 5696, 0]"]
57["Segment<br>[5704, 5729, 0]"]
59["Segment<br>[5737, 5780, 0]"]
63["Segment<br>[5788, 5813, 0]"]
67["Segment<br>[5821, 5865, 0]"]
72["Segment<br>[5873, 5880, 0]"]
81[Solid2d]
end
subgraph path20 [Path]
20["Path<br>[5328, 5353, 0]"]
44["Segment<br>[5413, 5456, 0]"]
48["Segment<br>[5464, 5584, 0]"]
52["Segment<br>[5647, 5696, 0]"]
58["Segment<br>[5704, 5729, 0]"]
61["Segment<br>[5737, 5780, 0]"]
64["Segment<br>[5788, 5813, 0]"]
69["Segment<br>[5821, 5865, 0]"]
73["Segment<br>[5873, 5880, 0]"]
82[Solid2d]
end
subgraph path21 [Path]
21["Path<br>[5328, 5353, 0]"]
46["Segment<br>[5413, 5456, 0]"]
50["Segment<br>[5464, 5584, 0]"]
54["Segment<br>[5647, 5696, 0]"]
55["Segment<br>[5704, 5729, 0]"]
62["Segment<br>[5737, 5780, 0]"]
66["Segment<br>[5788, 5813, 0]"]
70["Segment<br>[5821, 5865, 0]"]
71["Segment<br>[5873, 5880, 0]"]
83[Solid2d]
end
1["Plane<br>[1542, 1589, 0]"]
2["Plane<br>[2121, 2168, 0]"]
3["Plane<br>[2474, 2491, 0]"]
4["Plane<br>[4553, 4585, 0]"]
5["Plane<br>[5300, 5320, 0]"]
6["Plane<br>[5300, 5320, 0]"]
7["Plane<br>[5300, 5320, 0]"]
8["Plane<br>[5300, 5320, 0]"]
9["StartSketchOnPlane<br>[4539, 4586, 0]"]
10["StartSketchOnPlane<br>[1160, 1180, 0]"]
11["StartSketchOnPlane<br>[1160, 1180, 0]"]
12["StartSketchOnFace<br>[3094, 3136, 0]"]
84["Sweep Extrusion<br>[1529, 1632, 0]"]
85["Sweep Revolve<br>[2108, 2199, 0]"]
86["Sweep Extrusion<br>[2817, 2841, 0]"]
87["Sweep Extrusion<br>[3530, 3557, 0]"]
88["Sweep Extrusion<br>[3530, 3557, 0]"]
89["Sweep Extrusion<br>[3530, 3557, 0]"]
90["Sweep Extrusion<br>[3530, 3557, 0]"]
91["Sweep Extrusion<br>[4866, 4910, 0]"]
92["Sweep Extrusion<br>[6518, 6630, 0]"]
93["Sweep Extrusion<br>[6696, 6810, 0]"]
94["Sweep Revolve<br>[7636, 7691, 0]"]
95["Sweep Revolve<br>[7753, 7807, 0]"]
96[Wall]
97[Wall]
98[Wall]
99[Wall]
100[Wall]
101[Wall]
102[Wall]
103[Wall]
104[Wall]
105[Wall]
106[Wall]
107[Wall]
108[Wall]
109[Wall]
110[Wall]
111[Wall]
112[Wall]
113[Wall]
114[Wall]
115[Wall]
116[Wall]
117[Wall]
118[Wall]
119[Wall]
120[Wall]
121[Wall]
122[Wall]
123[Wall]
124[Wall]
125[Wall]
126[Wall]
127[Wall]
128[Wall]
129[Wall]
130[Wall]
131[Wall]
132[Wall]
133[Wall]
134[Wall]
135[Wall]
136[Wall]
137[Wall]
138[Wall]
139[Wall]
140[Wall]
141[Wall]
142[Wall]
143[Wall]
144[Wall]
145[Wall]
146[Wall]
147["Cap Start"]
148["Cap Start"]
149["Cap Start"]
150["Cap Start"]
151["Cap Start"]
152["Cap Start"]
153["Cap Start"]
154["Cap Start"]
155["Cap Start"]
156["Cap End"]
157["Cap End"]
158["Cap End"]
159["Cap End"]
160["Cap End"]
161["Cap End"]
162["Cap End"]
163["Cap End"]
164["SweepEdge Opposite"]
165["SweepEdge Opposite"]
166["SweepEdge Opposite"]
167["SweepEdge Opposite"]
168["SweepEdge Opposite"]
169["SweepEdge Opposite"]
170["SweepEdge Opposite"]
171["SweepEdge Opposite"]
172["SweepEdge Opposite"]
173["SweepEdge Opposite"]
174["SweepEdge Opposite"]
175["SweepEdge Opposite"]
176["SweepEdge Opposite"]
177["SweepEdge Opposite"]
178["SweepEdge Opposite"]
179["SweepEdge Opposite"]
180["SweepEdge Opposite"]
181["SweepEdge Opposite"]
182["SweepEdge Opposite"]
183["SweepEdge Opposite"]
184["SweepEdge Opposite"]
185["SweepEdge Opposite"]
186["SweepEdge Opposite"]
187["SweepEdge Opposite"]
188["SweepEdge Opposite"]
189["SweepEdge Opposite"]
190["SweepEdge Opposite"]
191["SweepEdge Opposite"]
192["SweepEdge Opposite"]
193["SweepEdge Opposite"]
194["SweepEdge Opposite"]
195["SweepEdge Opposite"]
196["SweepEdge Opposite"]
197["SweepEdge Opposite"]
198["SweepEdge Opposite"]
199["SweepEdge Opposite"]
200["SweepEdge Opposite"]
201["SweepEdge Opposite"]
202["SweepEdge Opposite"]
203["SweepEdge Opposite"]
204["SweepEdge Opposite"]
205["SweepEdge Opposite"]
206["SweepEdge Opposite"]
207["SweepEdge Opposite"]
208["SweepEdge Opposite"]
209["SweepEdge Opposite"]
210["SweepEdge Opposite"]
211["SweepEdge Opposite"]
212["SweepEdge Opposite"]
213["SweepEdge Opposite"]
214["SweepEdge Opposite"]
215["SweepEdge Adjacent"]
216["SweepEdge Adjacent"]
217["SweepEdge Adjacent"]
218["SweepEdge Adjacent"]
219["SweepEdge Adjacent"]
220["SweepEdge Adjacent"]
221["SweepEdge Adjacent"]
222["SweepEdge Adjacent"]
223["SweepEdge Adjacent"]
224["SweepEdge Adjacent"]
225["SweepEdge Adjacent"]
226["SweepEdge Adjacent"]
227["SweepEdge Adjacent"]
228["SweepEdge Adjacent"]
229["SweepEdge Adjacent"]
230["SweepEdge Adjacent"]
231["SweepEdge Adjacent"]
232["SweepEdge Adjacent"]
233["SweepEdge Adjacent"]
234["SweepEdge Adjacent"]
235["SweepEdge Adjacent"]
236["SweepEdge Adjacent"]
237["SweepEdge Adjacent"]
238["SweepEdge Adjacent"]
239["SweepEdge Adjacent"]
240["SweepEdge Adjacent"]
241["SweepEdge Adjacent"]
242["SweepEdge Adjacent"]
243["SweepEdge Adjacent"]
244["SweepEdge Adjacent"]
245["SweepEdge Adjacent"]
246["SweepEdge Adjacent"]
247["SweepEdge Adjacent"]
248["SweepEdge Adjacent"]
249["SweepEdge Adjacent"]
250["SweepEdge Adjacent"]
251["SweepEdge Adjacent"]
252["SweepEdge Adjacent"]
253["SweepEdge Adjacent"]
254["SweepEdge Adjacent"]
255["SweepEdge Adjacent"]
256["SweepEdge Adjacent"]
257["SweepEdge Adjacent"]
258["SweepEdge Adjacent"]
259["SweepEdge Adjacent"]
260["SweepEdge Adjacent"]
261["SweepEdge Adjacent"]
262["SweepEdge Adjacent"]
263["SweepEdge Adjacent"]
264["SweepEdge Adjacent"]
265["SweepEdge Adjacent"]
266["EdgeCut Fillet<br>[2847, 3077, 0]"]
267["EdgeCut Fillet<br>[2847, 3077, 0]"]
268["EdgeCut Fillet<br>[2847, 3077, 0]"]
269["EdgeCut Fillet<br>[2847, 3077, 0]"]
270["EdgeCut Fillet<br>[4916, 5149, 0]"]
271["EdgeCut Fillet<br>[4916, 5149, 0]"]
272["EdgeCut Fillet<br>[4916, 5149, 0]"]
273["EdgeCut Fillet<br>[4916, 5149, 0]"]
1 <--x 10
1 --- 14
2 <--x 11
2 --- 13
3 --- 15
4 <--x 9
4 --- 17
5 --- 20
6 --- 18
7 --- 21
8 --- 19
154 x--> 12
13 --- 22
13 --- 25
13 --- 26
13 --- 28
13 --- 30
13 --- 32
13 --- 79
13 ---- 85
14 --- 23
14 --- 24
14 --- 27
14 --- 29
14 --- 31
14 --- 33
14 --- 80
14 ---- 84
15 --- 34
15 --- 35
15 --- 36
15 --- 37
15 --- 77
15 ---- 86
16 --- 38
16 --- 76
16 ---- 88
154 --- 16
17 --- 39
17 --- 40
17 --- 41
17 --- 42
17 --- 75
17 ---- 91
18 --- 45
18 --- 49
18 --- 53
18 --- 56
18 --- 60
18 --- 65
18 --- 68
18 --- 74
18 --- 78
18 ---- 92
19 --- 43
19 --- 47
19 --- 51
19 --- 57
19 --- 59
19 --- 63
19 --- 67
19 --- 72
19 --- 81
19 ---- 95
20 --- 44
20 --- 48
20 --- 52
20 --- 58
20 --- 61
20 --- 64
20 --- 69
20 --- 73
20 --- 82
20 ---- 94
21 --- 46
21 --- 50
21 --- 54
21 --- 55
21 --- 62
21 --- 66
21 --- 70
21 --- 71
21 --- 83
21 ---- 93
22 --- 135
22 x--> 149
22 --- 204
22 --- 257
23 --- 118
23 x--> 151
23 --- 184
23 --- 239
24 --- 117
24 x--> 151
24 --- 186
24 --- 237
25 --- 137
25 x--> 149
25 --- 205
25 --- 253
26 --- 134
26 x--> 149
26 --- 202
26 --- 256
27 --- 116
27 x--> 151
27 --- 185
27 --- 235
28 --- 136
28 x--> 149
28 --- 206
28 --- 254
29 --- 119
29 x--> 151
29 --- 187
29 --- 236
30 --- 138
30 x--> 149
30 --- 203
30 --- 255
31 --- 120
31 x--> 151
31 --- 188
31 --- 238
34 --- 115
34 x--> 154
34 --- 181
34 --- 231
35 --- 114
35 x--> 154
35 --- 180
35 --- 234
36 --- 112
36 x--> 154
36 --- 183
36 --- 233
37 --- 113
37 x--> 154
37 --- 182
37 --- 232
38 --- 121
38 x--> 154
38 --- 189
38 --- 240
39 --- 130
39 x--> 148
39 --- 201
39 --- 252
40 --- 133
40 x--> 148
40 --- 198
40 --- 249
41 --- 131
41 x--> 148
41 --- 200
41 --- 250
42 --- 132
42 x--> 148
42 --- 199
42 --- 251
43 --- 98
43 x--> 153
43 --- 169
43 --- 217
44 --- 105
44 x--> 147
44 --- 174
44 --- 226
45 --- 128
45 x--> 152
45 --- 192
45 --- 242
46 --- 146
46 x--> 150
46 --- 208
46 --- 264
47 --- 96
47 x--> 153
47 --- 168
47 --- 215
48 --- 106
48 x--> 147
48 --- 176
48 --- 227
49 --- 123
49 x--> 152
49 --- 197
49 --- 241
50 --- 141
50 x--> 150
50 --- 210
50 --- 265
51 --- 97
51 x--> 153
51 --- 171
51 --- 218
52 --- 104
52 x--> 147
52 --- 178
52 --- 223
53 --- 126
53 x--> 152
53 --- 196
53 --- 248
54 --- 143
54 x--> 150
54 --- 214
54 --- 261
55 --- 139
55 x--> 150
55 --- 211
55 --- 263
56 --- 125
56 x--> 152
56 --- 194
56 --- 247
57 --- 103
57 x--> 153
57 --- 164
57 --- 216
58 --- 111
58 x--> 147
58 --- 173
58 --- 230
59 --- 100
59 x--> 153
59 --- 167
59 --- 219
60 --- 124
60 x--> 152
60 --- 193
60 --- 246
61 --- 109
61 x--> 147
61 --- 175
61 --- 228
62 --- 142
62 x--> 150
62 --- 207
62 --- 259
63 --- 101
63 x--> 153
63 --- 165
63 --- 220
64 --- 108
64 x--> 147
64 --- 172
64 --- 224
65 --- 127
65 x--> 152
65 --- 195
65 --- 243
66 --- 145
66 x--> 150
66 --- 213
66 --- 260
67 --- 99
67 x--> 153
67 --- 166
67 --- 222
68 --- 122
68 x--> 152
68 --- 191
68 --- 245
69 --- 107
69 x--> 147
69 --- 179
69 --- 225
70 --- 144
70 x--> 150
70 --- 209
70 --- 262
71 --- 140
71 x--> 150
71 --- 212
71 --- 258
72 --- 102
72 x--> 153
72 --- 170
72 --- 221
73 --- 110
73 x--> 147
73 --- 177
73 --- 229
74 --- 129
74 x--> 152
74 --- 190
74 --- 244
84 --- 116
84 --- 117
84 --- 118
84 --- 119
84 --- 120
84 --- 151
84 --- 160
84 --- 184
84 --- 185
84 --- 186
84 --- 187
84 --- 188
84 --- 235
84 --- 236
84 --- 237
84 --- 238
84 --- 239
85 --- 134
85 --- 135
85 --- 136
85 --- 137
85 --- 138
85 --- 149
85 --- 158
85 --- 202
85 --- 203
85 --- 204
85 --- 205
85 --- 206
85 --- 253
85 --- 254
85 --- 255
85 --- 256
85 --- 257
86 --- 112
86 --- 113
86 --- 114
86 --- 115
86 --- 154
86 --- 163
86 --- 180
86 --- 181
86 --- 182
86 --- 183
86 --- 231
86 --- 232
86 --- 233
86 --- 234
88 --- 121
88 --- 155
88 --- 189
88 --- 240
91 --- 130
91 --- 131
91 --- 132
91 --- 133
91 --- 148
91 --- 157
91 --- 198
91 --- 199
91 --- 200
91 --- 201
91 --- 249
91 --- 250
91 --- 251
91 --- 252
92 --- 122
92 --- 123
92 --- 124
92 --- 125
92 --- 126
92 --- 127
92 --- 128
92 --- 129
92 --- 152
92 --- 161
92 --- 190
92 --- 191
92 --- 192
92 --- 193
92 --- 194
92 --- 195
92 --- 196
92 --- 197
92 --- 241
92 --- 242
92 --- 243
92 --- 244
92 --- 245
92 --- 246
92 --- 247
92 --- 248
93 --- 139
93 --- 140
93 --- 141
93 --- 142
93 --- 143
93 --- 144
93 --- 145
93 --- 146
93 --- 150
93 --- 159
93 --- 207
93 --- 208
93 --- 209
93 --- 210
93 --- 211
93 --- 212
93 --- 213
93 --- 214
93 --- 258
93 --- 259
93 --- 260
93 --- 261
93 --- 262
93 --- 263
93 --- 264
93 --- 265
94 --- 104
94 --- 105
94 --- 106
94 --- 107
94 --- 108
94 --- 109
94 --- 110
94 --- 111
94 --- 147
94 --- 156
94 --- 172
94 --- 173
94 --- 174
94 --- 175
94 --- 176
94 --- 177
94 --- 178
94 --- 179
94 --- 223
94 --- 224
94 --- 225
94 --- 226
94 --- 227
94 --- 228
94 --- 229
94 --- 230
95 --- 96
95 --- 97
95 --- 98
95 --- 99
95 --- 100
95 --- 101
95 --- 102
95 --- 103
95 --- 153
95 --- 162
95 --- 164
95 --- 165
95 --- 166
95 --- 167
95 --- 168
95 --- 169
95 --- 170
95 --- 171
95 --- 215
95 --- 216
95 --- 217
95 --- 218
95 --- 219
95 --- 220
95 --- 221
95 --- 222
168 <--x 96
215 <--x 96
217 <--x 96
171 <--x 97
215 <--x 97
218 <--x 97
169 <--x 98
217 <--x 98
221 <--x 98
166 <--x 99
220 <--x 99
222 <--x 99
167 <--x 100
216 <--x 100
219 <--x 100
165 <--x 101
219 <--x 101
220 <--x 101
170 <--x 102
221 <--x 102
222 <--x 102
164 <--x 103
216 <--x 103
218 <--x 103
178 <--x 104
223 <--x 104
227 <--x 104
174 <--x 105
226 <--x 105
229 <--x 105
176 <--x 106
226 <--x 106
227 <--x 106
179 <--x 107
224 <--x 107
225 <--x 107
172 <--x 108
224 <--x 108
228 <--x 108
175 <--x 109
228 <--x 109
230 <--x 109
177 <--x 110
225 <--x 110
229 <--x 110
173 <--x 111
223 <--x 111
230 <--x 111
183 <--x 112
234 <--x 112
182 <--x 113
232 <--x 113
180 <--x 114
234 <--x 114
181 <--x 115
232 <--x 115
185 <--x 116
235 <--x 116
237 <--x 116
186 <--x 117
237 <--x 117
239 <--x 117
184 <--x 118
238 <--x 118
239 <--x 118
187 <--x 119
235 <--x 119
236 <--x 119
188 <--x 120
236 <--x 120
238 <--x 120
189 <--x 121
240 <--x 121
191 <--x 122
243 <--x 122
245 <--x 122
197 <--x 123
241 <--x 123
242 <--x 123
193 <--x 124
246 <--x 124
247 <--x 124
194 <--x 125
247 <--x 125
248 <--x 125
196 <--x 126
241 <--x 126
248 <--x 126
195 <--x 127
243 <--x 127
246 <--x 127
192 <--x 128
242 <--x 128
244 <--x 128
190 <--x 129
244 <--x 129
245 <--x 129
201 <--x 130
251 <--x 130
200 <--x 131
249 <--x 131
199 <--x 132
251 <--x 132
198 <--x 133
249 <--x 133
202 <--x 134
253 <--x 134
256 <--x 134
204 <--x 135
255 <--x 135
257 <--x 135
206 <--x 136
254 <--x 136
256 <--x 136
205 <--x 137
253 <--x 137
257 <--x 137
203 <--x 138
254 <--x 138
255 <--x 138
211 <--x 139
261 <--x 139
263 <--x 139
212 <--x 140
258 <--x 140
262 <--x 140
210 <--x 141
264 <--x 141
265 <--x 141
207 <--x 142
259 <--x 142
263 <--x 142
214 <--x 143
261 <--x 143
265 <--x 143
209 <--x 144
260 <--x 144
262 <--x 144
213 <--x 145
259 <--x 145
260 <--x 145
208 <--x 146
258 <--x 146
264 <--x 146
189 <--x 155
172 <--x 156
173 <--x 156
174 <--x 156
175 <--x 156
176 <--x 156
177 <--x 156
178 <--x 156
179 <--x 156
198 <--x 157
199 <--x 157
200 <--x 157
201 <--x 157
202 <--x 158
203 <--x 158
204 <--x 158
205 <--x 158
206 <--x 158
207 <--x 159
208 <--x 159
209 <--x 159
210 <--x 159
211 <--x 159
212 <--x 159
213 <--x 159
214 <--x 159
184 <--x 160
185 <--x 160
186 <--x 160
187 <--x 160
188 <--x 160
190 <--x 161
191 <--x 161
192 <--x 161
193 <--x 161
194 <--x 161
195 <--x 161
196 <--x 161
197 <--x 161
164 <--x 162
165 <--x 162
166 <--x 162
167 <--x 162
168 <--x 162
169 <--x 162
170 <--x 162
171 <--x 162
180 <--x 163
181 <--x 163
182 <--x 163
183 <--x 163
231 <--x 266
232 <--x 269
233 <--x 267
234 <--x 268
249 <--x 270
250 <--x 273
251 <--x 272
252 <--x 271