Development version.
Forge is under active development and testing. APIs, behaviour, coverage and
verification results may be incomplete or change without notice; published
PASS results are not a support guarantee or production-readiness claim.
Sketch.line
Author and return one reusable straight Sketch line.
Signature
Sketch.line(self, *, start, end)Use when
A downstream native feature needs one authored Sketch curve with stable identity, especially an associative Shape.fold().
Limits
This is the one-line convenience form of Sketch.chain() and currently follows the same standalone Sketch restrictions.
Parameters
start— Sketch-local (x, y) start point. Coordinates may retain Parameter/Expression dependencies.end— Sketch-local (x, y) end point. Coordinates may retain Parameter/Expression dependencies.
Example
with Sketch(name="Fold line", plane="XY") as sketch:
fold_line = sketch.line(
start=(20, -(depth / 2)),
end=(20, depth / 2),
)