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

@ -670,44 +670,47 @@ description: Result of parsing pattern_into_union.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"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": {
@ -717,7 +720,7 @@ description: Result of parsing pattern_into_union.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -728,8 +731,9 @@ description: Result of parsing pattern_into_union.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1331,52 +1335,55 @@ description: Result of parsing pattern_into_union.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": "endWidth",
"name": {
"commentStart": 0,
"end": 0,
"name": "endWidth",
"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": "baseHeight",
"name": {
"commentStart": 0,
"end": 0,
"name": "baseHeight",
"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": {
@ -1386,7 +1393,7 @@ description: Result of parsing pattern_into_union.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1397,8 +1404,9 @@ description: Result of parsing pattern_into_union.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -2122,19 +2130,65 @@ description: Result of parsing pattern_into_union.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "width",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "endWidth",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "width",
"name": "baseHeight",
"start": 0,
"type": "Identifier"
},
@ -2142,56 +2196,13 @@ description: Result of parsing pattern_into_union.kcl
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "endWidth",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "baseHeight",
"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"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -2201,7 +2212,7 @@ description: Result of parsing pattern_into_union.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -2212,8 +2223,9 @@ description: Result of parsing pattern_into_union.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -12,7 +12,7 @@ depth = nPlates * (buildPlateThickness + thicknessTolerance) + (nPlates + 1) * e
baseHeight = 0.25
base = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(endAbsolute = width, tag = $seg01)
|> yLine(endAbsolute = baseHeight + endTabHeight)
|> xLine(length = -endWidth)
@ -24,7 +24,7 @@ base = startSketchOn(XZ)
|> extrude(length = -depth)
endTabs = startSketchOn(XZ)
|> startProfileAt([endWidth, baseHeight], %)
|> startProfile(at = [endWidth, baseHeight])
|> xLine(endAbsolute = endWidth + endTabWidth)
|> angledLine(
angle = 135,
@ -44,7 +44,7 @@ endTabs = startSketchOn(XZ)
)
endTabs2 = startSketchOn(XZ)
|> startProfileAt([width - endWidth, baseHeight], %)
|> startProfile(at = [width - endWidth, baseHeight])
|> xLine(endAbsolute = width - endTabWidth)
|> angledLine(
angle = 45,

View File

@ -16,7 +16,7 @@ depth = nPlates * (buildPlateThickness + thicknessTolerance) + (nPlates + 1) * e
baseHeight = 0.25
base = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(endAbsolute = width, tag = $seg01)
|> yLine(endAbsolute = baseHeight + endTabHeight)
|> xLine(length = -endWidth)
@ -28,7 +28,7 @@ base = startSketchOn(XZ)
|> extrude(length = -depth)
endTabs = startSketchOn(XZ)
|> startProfileAt([endWidth, baseHeight], %)
|> startProfile(at = [endWidth, baseHeight])
|> xLine(endAbsolute = endWidth + endTabWidth)
|> angledLine(angle = 135, endAbsoluteY = baseHeight + endTabHeight, tag = $toFillet)
|> xLine(endAbsolute = endWidth)
@ -38,7 +38,7 @@ endTabs = startSketchOn(XZ)
|> patternLinear3d(axis = [0, 1, 0], distance = buildPlateThickness + thicknessTolerance + endTabThickness, instances = nPlates + 1)
endTabs2 = startSketchOn(XZ)
|> startProfileAt([width - endWidth, baseHeight], %)
|> startProfile(at = [width - endWidth, baseHeight])
|> xLine(endAbsolute = width - endTabWidth)
|> angledLine(angle = 45, endAbsoluteY = baseHeight + endTabHeight, tag = $toFillet2)
|> xLine(endAbsolute = width - endWidth)