Docs Home
/
KCL Standard Library
/
Functions
/
Std Sketch Line

lineFunction in std::sketch

Extend the current sketch with a new straight line.

This is part of sketch v1 and is soft deprecated in favor of sketch-solve.

Arguments

NameTypeDescriptionRequired
sketchSketchWhich sketch should this path be added to?Yes
endAbsolutePoint2dWhich absolute point should this line go to? Incompatible with end.No
endPoint2dHow far away (along the X and Y axes) should this line go? Incompatible with endAbsolute.No
tagTagDeclCreate a new tag which refers to this line.No

Returns

Sketch - A sketch is a collection of paths.

Examples

Found a typo?