Fix sample KCL, extrude needs to use kw args
This commit is contained in:
@ -37,7 +37,7 @@ triangle = startSketchOn("XZ")
|
||||
// the start of the sketch.
|
||||
|> line(endAbsolute = [10, 0])
|
||||
|> line(endAbsolute = [0, 10])
|
||||
|> line(endAbsolute = [-10, 0], tag = "thirdLineOfBox")
|
||||
|> line(endAbsolute = [-10, 0], tag = $thirdLineOfTriangle)
|
||||
|> close()
|
||||
|> extrude(length = 5)
|
||||
|
||||
@ -47,7 +47,7 @@ box = startSketchOn("XZ")
|
||||
// So, [10, 0] is a relative distance away from the current point.
|
||||
|> line(end = [10, 0])
|
||||
|> line(end = [0, 10])
|
||||
|> line(end = [-10, 0], tag = "thirdLineOfBox")
|
||||
|> line(end = [-10, 0], tag = $thirdLineOfBox)
|
||||
|> close()
|
||||
|> extrude(length = 5)
|
||||
```
|
||||
|
||||
@ -105235,7 +105235,7 @@
|
||||
"unpublished": false,
|
||||
"deprecated": false,
|
||||
"examples": [
|
||||
"triangle = startSketchOn(\"XZ\")\n |> startProfileAt([0, 0], %)\n // The 'end' argument means it ends at exactly [10, 0].\n // This is an absolute measurement, it is NOT relative to\n // the start of the sketch.\n |> line(endAbsolute = [10, 0])\n |> line(endAbsolute = [0, 10])\n |> line(endAbsolute = [-10, 0], tag = \"thirdLineOfBox\")\n |> close()\n |> extrude(length = 5)\n\nbox = startSketchOn(\"XZ\")\n |> startProfileAt([10, 10], %)\n // The 'to' argument means move the pen this much.\n // So, [10, 0] is a relative distance away from the current point.\n |> line(end = [10, 0])\n |> line(end = [0, 10])\n |> line(end = [-10, 0], tag = \"thirdLineOfBox\")\n |> close()\n |> extrude(length = 5)"
|
||||
"triangle = startSketchOn(\"XZ\")\n |> startProfileAt([0, 0], %)\n // The 'end' argument means it ends at exactly [10, 0].\n // This is an absolute measurement, it is NOT relative to\n // the start of the sketch.\n |> line(endAbsolute = [10, 0])\n |> line(endAbsolute = [0, 10])\n |> line(endAbsolute = [-10, 0], tag = $thirdLineOfTriangle)\n |> close()\n |> extrude(length = 5)\n\nbox = startSketchOn(\"XZ\")\n |> startProfileAt([10, 10], %)\n // The 'to' argument means move the pen this much.\n // So, [10, 0] is a relative distance away from the current point.\n |> line(end = [10, 0])\n |> line(end = [0, 10])\n |> line(end = [-10, 0], tag = $thirdLineOfBox)\n |> close()\n |> extrude(length = 5)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@ -47,7 +47,7 @@ bracketLeg1Sketch = startSketchOn('XY')
|
||||
}, %), %)
|
||||
|
||||
// Extrude the leg 2 bracket sketch
|
||||
bracketLeg1Extrude = extrude(thickness, bracketLeg1Sketch)
|
||||
bracketLeg1Extrude = extrude(bracketLeg1Sketch, length = thickness)
|
||||
|> fillet({
|
||||
radius = extFilletRadius,
|
||||
tags = [
|
||||
|
||||
@ -118,7 +118,7 @@ pub async fn line(exec_state: &mut ExecState, args: Args) -> Result<KclValue, Kc
|
||||
/// // the start of the sketch.
|
||||
/// |> line(endAbsolute = [10, 0])
|
||||
/// |> line(endAbsolute = [0, 10])
|
||||
/// |> line(endAbsolute = [-10, 0], tag = "thirdLineOfBox")
|
||||
/// |> line(endAbsolute = [-10, 0], tag = $thirdLineOfTriangle)
|
||||
/// |> close()
|
||||
/// |> extrude(length = 5)
|
||||
///
|
||||
@ -128,7 +128,7 @@ pub async fn line(exec_state: &mut ExecState, args: Args) -> Result<KclValue, Kc
|
||||
/// // So, [10, 0] is a relative distance away from the current point.
|
||||
/// |> line(end = [10, 0])
|
||||
/// |> line(end = [0, 10])
|
||||
/// |> line(end = [-10, 0], tag = "thirdLineOfBox")
|
||||
/// |> line(end = [-10, 0], tag = $thirdLineOfBox)
|
||||
/// |> close()
|
||||
/// |> extrude(length = 5)
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user