query_entities
Query drawing entities by type and layer to inspect CAD content from the active drawing or a DWG file. Returns filtered records for review.
Instructions
Query entities in the active drawing (or a DWG file) with optional type and layer filters.
Args: entity_type: Optional DXF entity type filter (e.g. 'LINE', 'LWPOLYLINE', 'CIRCLE', 'ARC', 'TEXT', 'MTEXT', 'INSERT', 'DIMENSION', 'HATCH'). layer: Optional layer name filter. limit: Maximum number of entity records to return (default 100). input_dwg: Optional path to a .dwg file to inspect in headless mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| limit | No | ||
| input_dwg | No | ||
| entity_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |