add_rectangle
Add a fully-constrained rectangle to a sketch, with exact width, height, and corner position. It is automatically locked, so the sketch is ready for padding or pocketing without extra dimensioning.
Instructions
Add a fully-constrained rectangle to a sketch, corner at (x, y).
The rectangle is locked in place (not just shaped) as it is created, so
the sketch is immediately safe to pad/pocket — no separate dimensioning
step needed.
Args:
doc_name: The name of the document.
sketch_name: The name of the sketch to add geometry to.
width: Rectangle width along the sketch's local X axis.
height: Rectangle height along the sketch's local Y axis.
x: X coordinate of the rectangle's corner in sketch-local space.
y: Y coordinate of the rectangle's corner in sketch-local space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| width | Yes | ||
| height | Yes | ||
| doc_name | Yes | ||
| sketch_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |