create_rounded_rectangle_sketch
Create a rounded rectangle sketch in one feature from two opposite corners, a corner radius, and a plane or face. Avoids drawing four lines and four tangent arcs manually, reducing geometry errors.
Instructions
Create a rounded rectangle sketch (4 lines + 4 tangent corner arcs) in ONE feature. Use instead of hand-rolling 4 lines + 4 arcs with the per-primitive tools -- fewer turns and no radians/degrees mistakes. Sketch location: pass either plane (Front/Top/Right) or faceId (from list_entities). faceId wins when both are given. cornerRadius must be > 0 and no more than half the short side of the bounding rect (otherwise there'd be no straight segments left).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sketch name | Sketch |
| plane | No | Standard datum plane. Defaults to Front if neither plane nor faceId is given. | |
| faceId | No | Deterministic ID of an existing face (from `list_entities`). Mutually exclusive with `plane`; wins if both given. | |
| corner1 | Yes | First corner of the bounding rect [x, y]. Bare numbers are mm; use "10 mm" / "0.5 in" for explicit units. | |
| corner2 | Yes | Opposite corner of the bounding rect [x, y]. Same convention as corner1. | |
| elementId | Yes | Part Studio element ID | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID | |
| cornerRadius | Yes | Fillet radius at each corner. Bare numbers are mm; use explicit units for in/cm/m. |