Add Hatch Boundary
hatch_add_boundaryAdd an island boundary to an existing hatch using typed line, arc, or ellipse edges, with validation before writing so curves stay true and malformed paths are refused.
Instructions
Add one boundary path built from typed edges - an island inside the hatch.
Typed edges exist because a boundary that only accepts vertex lists silently straightens every curve it is given. Every edge is validated before any is written, so a malformed list refuses instead of leaving a half-built path. Both engines: headlessly the edges become an edge path; on a live seat each becomes a temporary LINE, true ARC or ELLIPSE appended as an inner loop and then deleted (a chain of lines becomes one polyline). A loop that does not close is refused by AutoCAD and nothing is added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Typed edges: {'type':'line','start':[x,y],'end':[x,y]} | {'type':'arc','center':[x,y],'radius':r,'start_angle':a,'end_angle':b,'ccw':true} | {'type':'ellipse','center':[x,y],'major_axis':[x,y],'ratio':r} | |
| handle | Yes | Handle of an existing HATCH. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||