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

@ -211,52 +211,55 @@ description: Result of parsing tan_arc_x_line.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "startX",
"name": {
"commentStart": 0,
"end": 0,
"name": "startX",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "startY",
"name": {
"commentStart": 0,
"end": 0,
"name": "startY",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -266,7 +269,7 @@ description: Result of parsing tan_arc_x_line.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -277,8 +280,9 @@ description: Result of parsing tan_arc_x_line.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -5,7 +5,7 @@ r = 1
angleStart = 110
startSketchOn('XY')
|> startProfileAt([startX, startY], %)
|> startProfile(at = [startX, startY])
|> angledLine(angle = angleStart, length = .000001)
|> tangentialArc(angle = angleOffset, radius = r, tag = $arc1)
|> tangentialArc(angle = angleOffset, radius = 0.5 * r, tag = $arc2)

View File

@ -9,7 +9,7 @@ r = 1
angleStart = 110
startSketchOn(XY)
|> startProfileAt([startX, startY], %)
|> startProfile(at = [startX, startY])
|> angledLine(angle = angleStart, length = .000001)
|> tangentialArc(angle = angleOffset, radius = r, tag = $arc1)
|> tangentialArc(angle = angleOffset, radius = 0.5 * r, tag = $arc2)