create_sketch_arc
Create a parametric arc sketch on a chosen plane or existing face. Specify center, radius, and start/end angles to define the arc geometry in an Onshape Part Studio.
Instructions
Create an arc sketch. Pass either plane (Front/Top/Right) or faceId (from list_entities) to choose the sketch surface. faceId wins when both are given.
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. | |
| center | No | Center point [x, y]. Bare numbers are mm; use "10 mm" / "0.5 in" for explicit units. Preferred over centerX/centerY. | |
| faceId | No | Deterministic ID of an existing face to sketch on (get from `list_entities`). Mutually exclusive with `plane`; wins if both given. | |
| radius | Yes | Radius. Bare=mm; use "5 mm" / "0.125 in" for explicit units. | |
| centerX | No | Center X (bare=mm). Legacy; prefer `center`. | |
| centerY | No | Center Y (bare=mm). Legacy; prefer `center`. | |
| endAngle | No | End angle. Bare number = DEGREES; pass "180 deg" or "3.14 rad" for explicit units. | |
| elementId | Yes | Part Studio element ID | |
| documentId | Yes | Document ID | |
| startAngle | No | Start angle. Bare number = DEGREES (0 = positive X, the CAD convention); pass "45 deg" or "1.5 rad" for explicit units. Bare radians will NOT be detected — use the string form to avoid silent near-zero arcs. | |
| workspaceId | Yes | Workspace ID | |
| variableCenter | No | Optional [x_var, y_var] variable names. HORIZONTAL + VERTICAL DISTANCE constraints from sketch origin to arc center. | |
| variableRadius | No | Optional variable-table name to drive the arc radius parametrically. Emits a RADIUS constraint with expression `#<name>`. |