sketch_rectangle
Draw an axis-aligned rectangle as four lines in an NX sketch by specifying two opposite corners in millimeter coordinates, defining the sketch profile for modeling.
Instructions
Add an axis-aligned rectangle (four lines) to a sketch.
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": {
"sketch": "<sketch>",
"corner1": "<corner1>",
"corner2": "<corner2>"
},
"name": "sketch_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | Sketch name. | |
| corner1 | Yes | First corner [x, y] in sketch coordinates (mm) | |
| corner2 | Yes | Opposite corner [x, y] in sketch coordinates (mm) |