draw_rectangle
Draw a centered rectangle in an Inventor sketch using millimeter coordinates, width, height, and optional corner radius to create rounded or slot shapes.
Instructions
Draw a centered rectangle in a sketch. Dimensions in mm.
Args: x: Center X coordinate in mm. y: Center Y coordinate in mm. width: Width in mm. height: Height in mm. sketch_index: Sketch number (0 = latest sketch). corner_radius: Round all four corners with real arcs (half the short side = a slot).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | No | ||
| height | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| sketch_index | No | ||
| corner_radius | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |