create_line
Draw a line on an active sketch to construct non-rectangular profiles before extrusion. Returns endpoints and length.
Instructions
Draw a line on the active sketch.
Args: x1_mm, y1_mm: Start point in mm (sketch-local frame). x2_mm, y2_mm: End point.
Returns the line's geometry (endpoints + length). Used as a building block for non-rectangular profiles before extrusion.
Caveat: requires an active sketch (call create_sketch first).
Caveat (paramétrico): el croquis NO es paramétrico. modify_dimension NO puede mover los endpoints ni cambiar la longitud post-hoc — solo la profundidad de extrusión es paramétrica. Para cambiar la línea, reconstruye desde una pieza nueva. [en: Sketch geometry has NO driving dimension — modify_dimension cannot move endpoints or resize length post-hoc; only extrude depth is parametric. To resize, rebuild from a fresh part.]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1_mm": "<x1_mm>",
"y1_mm": "<y1_mm>",
"x2_mm": "<x2_mm>",
"y2_mm": "<y2_mm>"
},
"name": "create_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1_mm | Yes | ||
| x2_mm | Yes | ||
| y1_mm | Yes | ||
| y2_mm | Yes |