hatch_create
Fill a closed planar boundary with a hatch pattern using specified scale, angle, layer, and color. Rejects invalid or unsupported boundaries that are not closed and coplanar.
Instructions
Create a hatch from a closed WCS XY boundary using pattern, scale, and angle in degrees; invalid or unsupported boundaries are refused.
Side-effects: Adds HATCH entity to active space. Disambiguation: Use to fill closed contours; boundary must be closed and coplanar.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"boundary_points": "<boundary_points>"
},
"name": "hatch_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Hatch pattern rotation angle in degrees (default: 0.0) | |
| color | No | AutoCAD Color Index (ACI 1-255). Uses ByLayer if omitted | |
| layer | No | Target layer name. Uses active layer if omitted | |
| scale | No | Hatch pattern scale factor (default: 1.0) | |
| pattern | No | Hatch pattern name (e.g. 'SOLID', 'ANSI31', 'ANSI32', 'BRICK') (default: 'SOLID') | SOLID |
| boundary_points | Yes | List of [X, Y] coordinates defining a closed planar polygon boundary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||