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

@ -400,68 +400,71 @@ description: Result of parsing poop_chute.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": {
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "back_walls_width",
"name": {
"commentStart": 0,
"end": 0,
"name": "back_walls_width",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
{
"commentStart": 0,
"end": 0,
"raw": "2",
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -471,7 +474,7 @@ description: Result of parsing poop_chute.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -482,8 +485,9 @@ description: Result of parsing poop_chute.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1713,68 +1717,71 @@ description: Result of parsing poop_chute.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": {
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "back_walls_width",
"name": {
"commentStart": 0,
"end": 0,
"name": "back_walls_width",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
{
"commentStart": 0,
"end": 0,
"raw": "2",
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1784,7 +1791,7 @@ description: Result of parsing poop_chute.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1795,8 +1802,9 @@ description: Result of parsing poop_chute.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -10,7 +10,7 @@ Fx = 0.5
Fy = 0.5
sketch001 = startSketchOn(-YZ)
|> startProfileAt([back_walls_width / 2, 0], %)
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg01)
|> yLine(endAbsolute = height)
@ -34,7 +34,7 @@ part001 = revolve(
)
sketch002 = startSketchOn(-YZ)
|> startProfileAt([back_walls_width / 2, 0], %)
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg02)
|> yLine(endAbsolute = height)

View File

@ -14,7 +14,7 @@ Fx = 0.5
Fy = 0.5
sketch001 = startSketchOn(-YZ)
|> startProfileAt([back_walls_width / 2, 0], %)
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg01)
|> yLine(endAbsolute = height)
@ -38,7 +38,7 @@ part001 = revolve(
)
sketch002 = startSketchOn(-YZ)
|> startProfileAt([back_walls_width / 2, 0], %)
|> startProfile(at = [back_walls_width / 2, 0])
|> xLine(length = wall_thickness / 2)
|> angledLine(angle = 45, endAbsoluteX = back_walls_width, tag = $seg02)
|> yLine(endAbsolute = height)