catia_sketch_rectangle
Create a closed rectangle in a CATIA sketch by specifying two opposite corner coordinates. The four lines share explicit corner points, generating a fully enclosed profile ready for immediate padding or pocketing.
Instructions
Add a closed rectangle from two opposite corners. The four lines share explicit corner points, so the profile is genuinely closed and can be padded or pocketed straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | First corner H coordinate, mm. | |
| x2 | Yes | Opposite corner H coordinate, mm. | |
| y1 | Yes | First corner V coordinate, mm. | |
| y2 | Yes | Opposite corner V coordinate, mm. | |
| sketch | No | Target sketch. |