draw_hatch
Creates a hatch inside a closed AutoCAD entity by handle, letting you set pattern, scale, angle, layer, and ACI color for fills and section shading.
Instructions
Create a HATCH inside a closed entity specified by its handle.
Args: boundary_handle: Hex handle of the closed boundary entity (e.g. from draw_rectangle, draw_polyline, or draw_circle). pattern: Hatch pattern name (e.g. 'SOLID', 'ANSI31', 'ANSI37', 'NET'). scale: Hatch pattern scale (ignored for SOLID). angle_deg: Hatch pattern angle in degrees. layer: Optional layer name. color: Optional ACI color (1-255).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| scale | No | ||
| pattern | No | ANSI31 | |
| angle_deg | No | ||
| boundary_handle | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |