Trace Boundary
boundary_traceTrace the nearest closed boundary around a seed point in AutoCAD. Creates a polyline loop, correctly handling islands and edges that cross or nearly close.
Instructions
AutoCAD's BOUNDARY/BPOLY: create a closed polyline around a seed point.
Returns the nearest enclosing loop, so a seed inside an island gives the island rather than the outer region. Straight edges are split where they cross, so a line drawn across a shape divides it the way it looks like it should. A seed with no enclosing loop is refused, and the error names the gap when the edges nearly close.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Seed point X, inside the region to trace. | |
| y | Yes | Seed point Y, inside the region to trace. | |
| layer | No | Only consider edges on this layer. Empty considers all. | |
| tolerance | No | Gap tolerance for joining edges. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||