create_sketch_rectangle
Define a rectangular sketch in a Part Studio by specifying corner coordinates on a plane, with optional width and height variable references.
Instructions
Create a rectangular sketch in a Part Studio with optional variable references
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": {
"documentId": "<documentId>",
"workspaceId": "<workspaceId>",
"elementId": "<elementId>",
"corner1": "<corner1>",
"corner2": "<corner2>"
},
"name": "create_sketch_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sketch name | Sketch |
| plane | No | Sketch plane | Front |
| corner1 | Yes | First corner [x, y] in inches | |
| corner2 | Yes | Second corner [x, y] in inches | |
| elementId | Yes | Part Studio element ID | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID | |
| variableWidth | No | Optional variable name for width | |
| variableHeight | No | Optional variable name for height |