catia_sketch_polyline
Adds a connected polyline to a sketch from a point list, optionally closing it to form a profile suitable for pads or pockets.
Instructions
Add a chain of connected lines through a list of points, optionally closing it back to the first point. Shared end points are created explicitly, so a closed polyline is immediately usable as a pad or pocket profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | No | Join the last point back to the first. | |
| points | Yes | Points as [[x1,y1],[x2,y2],...] in sketch coordinates, mm. | |
| sketch | No | Target sketch. |