create_sketch_circle
Create a circular sketch on a plane or face in an Onshape Part Studio, defining center and radius. Optionally drive dimensions with parametric variables for later edits.
Instructions
Create a circular 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`. | |
| elementId | Yes | Part Studio element ID | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID | |
| variableCenter | No | Optional [x_var, y_var] variable names. Emits HORIZONTAL + VERTICAL DISTANCE constraints from the sketch origin to the circle center, driven by `#x_var` / `#y_var`. | |
| variableRadius | No | Optional variable-table name to drive the radius parametrically. Emits a RADIUS dimensional constraint with expression `#<name>` so a later set_variable call resizes the hole without touching this sketch. |