Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
322 KiB
322 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
startProfile | Start a new profile at a given point. | manual |
Start a new profile at a given point.
startProfile(
sketchSurface: SketchSurface,
at: [number],
tag?: TagDeclarator,
): Sketch
Arguments
Name | Type | Description | Required |
---|---|---|---|
sketchSurface |
SketchSurface |
What to start the profile on | Yes |
at |
[number] |
Where to start the profile. An absolute point. | Yes |
tag |
TagDeclarator |
Tag this first starting point | No |
Returns
Examples
exampleSketch = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> line(end = [10, 0])
|> line(end = [0, 10])
|> line(end = [-10, 0])
|> close()
example = extrude(exampleSketch, length = 5)
exampleSketch = startSketchOn(-XZ)
|> startProfile(at = [10, 10])
|> line(end = [10, 0])
|> line(end = [0, 10])
|> line(end = [-10, 0])
|> close()
example = extrude(exampleSketch, length = 5)
exampleSketch = startSketchOn(-XZ)
|> startProfile(at = [-10, 23])
|> line(end = [10, 0])
|> line(end = [0, 10])
|> line(end = [-10, 0])
|> close()
example = extrude(exampleSketch, length = 5)